mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
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:
parent
b0d239fd81
commit
4d558e10c7
3 changed files with 4 additions and 11 deletions
|
@ -294,10 +294,7 @@ void SwapBSPFile( void ) {
|
|||
=============
|
||||
*/
|
||||
int GetLumpElements( dheader_t *header, int lump, int size ) {
|
||||
int length, ofs;
|
||||
|
||||
length = header->lumps[lump].filelen;
|
||||
ofs = header->lumps[lump].fileofs;
|
||||
int length = header->lumps[lump].filelen;
|
||||
|
||||
if ( length % size ) {
|
||||
Error( "LoadBSPFile: odd lump size" );
|
||||
|
|
|
@ -381,11 +381,9 @@ byte AveragePixels( int count ){
|
|||
int pix;
|
||||
int bestcolor;
|
||||
byte *pal;
|
||||
int fullbright;
|
||||
|
||||
vis = 0;
|
||||
r = g = b = 0;
|
||||
fullbright = 0;
|
||||
for ( i = 0 ; i < count ; i++ )
|
||||
{
|
||||
pix = pixdata[i];
|
||||
|
|
|
@ -559,7 +559,6 @@ static void CopyTrianglesToBaseTriangles( triangle_t *ptri, int numtri, baseTria
|
|||
// float s_scale, t_scale;
|
||||
// float scale;
|
||||
// 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++ )
|
||||
{
|
||||
pbasevert = ptri->verts[j];
|
||||
|
||||
VectorCopy( ptri->verts[j], bTri->v[j].xyz );
|
||||
VectorCopy( ptri->normals[j], bTri->v[j].normal );
|
||||
|
||||
|
@ -1905,8 +1902,9 @@ static void ConvertASE( const char *filename, int type, qboolean grabAnims ){
|
|||
}
|
||||
}
|
||||
|
||||
if ( !tagWeapon ) {
|
||||
Error( "Missing tag_weapon!" );
|
||||
if ( !tagHead ) {
|
||||
// todo: was never being checked; should we error now that it is?
|
||||
// Error( "Missing tag_head!" );
|
||||
}
|
||||
if ( !tagTorso ) {
|
||||
Error( "Missing tag_torso!" );
|
||||
|
|
Loading…
Reference in a new issue