mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
squelch compiler warnings
This commit is contained in:
parent
9bcc2807ad
commit
57b6ad6c15
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user