Warning fixes.

This commit is contained in:
Robert Osfield
2002-11-22 09:46:25 +00:00
parent bcf9d08c2b
commit 22c313cf3e
5 changed files with 21 additions and 36 deletions

View File

@@ -217,10 +217,10 @@ static void read_surf(FILE *f, gint nbytes, lwObject *lwo)
break;
case ID_TFAL:
if (tex) {
float vx,vy,vz;
vx = read_float(f);
vy = read_float(f);
vz = read_float(f);
//float vx,vy,vz;
/*vx =*/ read_float(f);
/*vy =*/ read_float(f);
/*vz =*/ read_float(f);
//printf("fal %.2f %.2f %.2f\n", vx,vy,vz);
}
else
@@ -228,10 +228,10 @@ static void read_surf(FILE *f, gint nbytes, lwObject *lwo)
break;
case ID_TVEL:
if (tex) {
float vx,vy,vz;
vx = read_float(f);
vy = read_float(f);
vz = read_float(f);
//float vx,vy,vz;
/*vx =*/ read_float(f);
/*vy =*/ read_float(f);
/*vz =*/ read_float(f);
//printf("vel %.2f %.2f %.2f\n", vx,vy,vz);
}
else

View File

@@ -38,8 +38,7 @@ bool Geometry_readLocalData(Object& obj, Input& fr)
Geometry& geom = static_cast<Geometry&>(obj);
bool matchedFirst = false;
if ((matchedFirst=fr.matchSequence("Primitives %i {")) || fr.matchSequence("PrimitiveSets %i {") )
if (fr.matchSequence("Primitives %i {") || fr.matchSequence("PrimitiveSets %i {") )
{
int entry = fr[1].getNoNestedBrackets();