mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -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 */
|
/* 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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user