Browse Source

squelch compiler warnings

David Rose 20 years ago
parent
commit
e01f373b7a

+ 1 - 1
pandatool/src/gtk-stats/gtkStatsStripChart.cxx

@@ -362,7 +362,7 @@ expose_event_impl(GdkEventExpose *event) {
 gint GtkStatsStripChart::
 button_press_event_impl(GdkEventButton *button) {
   if (button->type == GDK_2BUTTON_PRESS && button->button == 1) {
-    int collector_index = get_collector_under_pixel(button->x, button->y);
+    int collector_index = get_collector_under_pixel((int)button->x, (int)button->y);
     collector_picked(collector_index);
     return true;
   }

+ 1 - 1
pandatool/src/maya/mayaShaderColorDef.cxx

@@ -321,7 +321,7 @@ read_surface_color(MayaShader *shader, MObject color, bool trans) {
 
     MFnDependencyNode layered_fn(color);
     MPlugArray color_pa;
-    MStatus status = layered_fn.getConnections(color_pa);
+    layered_fn.getConnections(color_pa);
     maya_cat.debug() << "number of connections: " << color_pa.length() << endl;
     bool first = true;
     for (size_t i=0; i<color_pa.length(); ++i) {