q3map2: remove some "unused but set variable" warning

imported from netradiant, initial commit message:

> Remove -Wno-unused-but-set-variable
This commit is contained in:
TimePath 2017-08-06 19:24:03 +10:00 committed by Thomas Debesse
parent b0d239fd81
commit 4d558e10c7
3 changed files with 4 additions and 11 deletions

View file

@ -294,10 +294,7 @@ void SwapBSPFile( void ) {
============= =============
*/ */
int GetLumpElements( dheader_t *header, int lump, int size ) { int GetLumpElements( dheader_t *header, int lump, int size ) {
int length, ofs; int length = header->lumps[lump].filelen;
length = header->lumps[lump].filelen;
ofs = header->lumps[lump].fileofs;
if ( length % size ) { if ( length % size ) {
Error( "LoadBSPFile: odd lump size" ); Error( "LoadBSPFile: odd lump size" );

View file

@ -381,11 +381,9 @@ byte AveragePixels( int count ){
int pix; int pix;
int bestcolor; int bestcolor;
byte *pal; byte *pal;
int fullbright;
vis = 0; vis = 0;
r = g = b = 0; r = g = b = 0;
fullbright = 0;
for ( i = 0 ; i < count ; i++ ) for ( i = 0 ; i < count ; i++ )
{ {
pix = pixdata[i]; pix = pixdata[i];

View file

@ -559,7 +559,6 @@ static void CopyTrianglesToBaseTriangles( triangle_t *ptri, int numtri, baseTria
// float s_scale, t_scale; // float s_scale, t_scale;
// float scale; // float scale;
// vec3_t mins, maxs; // vec3_t mins, maxs;
float *pbasevert;
/* /*
// //
@ -618,8 +617,6 @@ static void CopyTrianglesToBaseTriangles( triangle_t *ptri, int numtri, baseTria
for ( j = 0 ; j < 3 ; j++ ) for ( j = 0 ; j < 3 ; j++ )
{ {
pbasevert = ptri->verts[j];
VectorCopy( ptri->verts[j], bTri->v[j].xyz ); VectorCopy( ptri->verts[j], bTri->v[j].xyz );
VectorCopy( ptri->normals[j], bTri->v[j].normal ); VectorCopy( ptri->normals[j], bTri->v[j].normal );
@ -1905,8 +1902,9 @@ static void ConvertASE( const char *filename, int type, qboolean grabAnims ){
} }
} }
if ( !tagWeapon ) { if ( !tagHead ) {
Error( "Missing tag_weapon!" ); // todo: was never being checked; should we error now that it is?
// Error( "Missing tag_head!" );
} }
if ( !tagTorso ) { if ( !tagTorso ) {
Error( "Missing tag_torso!" ); Error( "Missing tag_torso!" );