Browse Source

squelch compiler warnings

David Rose 24 years ago
parent
commit
57b6ad6c15
2 changed files with 3 additions and 2 deletions
  1. 2 1
      panda/src/builder/builderFuncs.I
  2. 1 1
      panda/src/builder/builderPrimTempl.I

+ 2 - 1
panda/src/builder/builderFuncs.I

@@ -235,6 +235,7 @@ triangulate_poly(const PrimType &prim, BuilderBucket &bucket,
   /* select largest signed area */
   max = 0.0;
   index = 0;
+  flag = 0;
   for (i = 0; i < 3; i++) {
     if (as[i] >= 0.0) {
       if (as[i] > max) {
@@ -264,7 +265,7 @@ triangulate_poly(const PrimType &prim, BuilderBucket &bucket,
     y = 2;
     break;
 
-  case 2:
+  default: // case 2
     x = 1;
     y = 2;
     break;

+ 1 - 1
panda/src/builder/builderPrimTempl.I

@@ -854,7 +854,7 @@ update_overall_attrib() {
 
   NType common_normal;
   CType common_color;
-  float common_pixel_size;
+  float common_pixel_size = 0.0;
 
   bool has_common_normal = false;
   bool has_common_color = false;