squelch compiler warnings

This commit is contained in:
David Rose 2001-08-07 03:50:15 +00:00
parent 9bcc2807ad
commit 57b6ad6c15
2 changed files with 3 additions and 2 deletions

View File

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

View File

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