]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
more warnings done. Now q3map2 is warning free apart from libpng deprecation problems.
authorRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 17:47:08 +0000 (19:47 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 17:47:08 +0000 (19:47 +0200)
libs/picomodel/lwo/lwo2.c
libs/picomodel/lwo/lwob.c
libs/picomodel/pm_fm.c
libs/picomodel/pm_md2.c
tools/quake3/common/imagelib.c
tools/quake3/common/scriplib.c

index 56c756c325d62302ea700d922999bf7ca05e28c9..9e45bfa1fe57f1f928334dc221cc781b4907096f 100644 (file)
@@ -272,7 +272,7 @@ Fail:
 
 int lwValidateObject( const char *filename, picoMemStream_t *fp, unsigned int *failID, int *failpos )
 {
-   unsigned int id, formsize, type;
+   unsigned int id, type;
 
    /* open the file */
 
@@ -282,7 +282,7 @@ int lwValidateObject( const char *filename, picoMemStream_t *fp, unsigned int *f
 
    set_flen( 0 );
    id       = getU4( fp );
-   formsize = getU4( fp );
+   /* formsize = */ getU4( fp );
    type     = getU4( fp );
    if ( 12 != get_flen() ) {
       return PICO_PMV_ERROR_SIZE;
index f12e3a362b86a9fe4bd4bbdda60a2827bcd28ae0..cb2a70eae4de33a2d1e13ec91f3438f6a6d2e9f0 100644 (file)
@@ -712,7 +712,7 @@ Fail:
 
 int lwValidateObject5( const char *filename, picoMemStream_t *fp, unsigned int *failID, int *failpos )
 {
-   unsigned int id, formsize, type;
+   unsigned int id, type;
 
 
    /* open the file */
@@ -723,7 +723,7 @@ int lwValidateObject5( const char *filename, picoMemStream_t *fp, unsigned int *
 
    set_flen( 0 );
    id       = getU4( fp );
-   formsize = getU4( fp );
+   /* formsize = */ getU4( fp );
    type     = getU4( fp );
    if ( 12 != get_flen() ) {
       return PICO_PMV_ERROR_SIZE;
index 1065160e64792f4bb15d37b768a24abc0b05e1c9..0fc6581360a95943e57c20dbd668f6f13f9d35df 100644 (file)
@@ -208,7 +208,6 @@ static picoModel_t *_fm_load( PM_PARAMS_LOAD )
 {
        int                             i, j, dups, dup_index;
        int                             fm_file_pos;
-       short                   tot_numVerts;
        index_LUT_t             *p_index_LUT, *p_index_LUT2, *p_index_LUT3;
        index_DUP_LUT_t *p_index_LUT_DUPS;
 
@@ -458,7 +457,6 @@ static picoModel_t *_fm_load( PM_PARAMS_LOAD )
        }
 
        // Fill in Look Up Table, and allocate/fill Linked List from vert array as needed for dup STs per Vert.
-       tot_numVerts = fm_head->numXYZ;
        dups = 0;
        triangle = tri_verts;
 
index d53f70295467081d1296d15a2b40b23cd33bf946..19b5689ccd070895411c970f70efd3146c2a359f 100644 (file)
@@ -329,7 +329,6 @@ static int _md2_canload( PM_PARAMS_CANLOAD )
 static picoModel_t *_md2_load( PM_PARAMS_LOAD )
 {
        int                             i, j, dups, dup_index;
-       short                   tot_numVerts;
        index_LUT_t             *p_index_LUT, *p_index_LUT2, *p_index_LUT3;
        index_DUP_LUT_t *p_index_LUT_DUPS;
        md2Triangle_t   *p_md2Triangle;
@@ -491,7 +490,6 @@ static picoModel_t *_md2_load( PM_PARAMS_LOAD )
        }
 
        // Fill in Look Up Table, and allocate/fill Linked List from vert array as needed for dup STs per Vert.
-       tot_numVerts = md2->numXYZ;
        dups = 0;
        for(i=0; i<md2->numTris; i++)
        {
index 31e31850bdfb9b141a6f0f943bb0104566058472..b95fe971749b935258406bc4c08261b1ba5f0ed5 100644 (file)
@@ -678,7 +678,6 @@ void LoadBMP (const char *filename, byte **pic, byte **palette, int *width, int
 {
   byte *out;
   int          i;
-  int          bfSize; 
   int          bfOffBits; 
   int          structSize;
   int          bcWidth; 
@@ -701,7 +700,7 @@ void LoadBMP (const char *filename, byte **pic, byte **palette, int *width, int
     Error ("%s is not a bmp file", filename);
   }
 
-  bfSize = bufLittleLong (in, len, &pos);
+  /* bfSize = */ bufLittleLong (in, len, &pos);
   bufLittleShort(in, len, &pos);
   bufLittleShort(in, len, &pos);
   bfOffBits = bufLittleLong (in, len, &pos);
index 47196e53aa9ce9cea642698032334f526eec882c..5502d35af3de3162471ebc10d63331c5bd1c07fc 100644 (file)
@@ -296,12 +296,11 @@ Returns qtrue if there is another token on the line
 ==============
 */
 qboolean TokenAvailable (void) {
-       int             oldLine, oldScriptLine;
+       int             oldLine;
        qboolean        r;
        
        /* save */
        oldLine = scriptline;
-       oldScriptLine = script->line;
        
        /* test */
        r = GetToken( qtrue );