Changeset 175

Show
Ignore:
Timestamp:
09/05/07 12:30:15 (10 months ago)
Author:
lordhavoc
Message:

some warning fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/trunk/tools/quake3/q3map2/brush.c

    r157 r175  
    7979         
    8080        /* count brushes */ 
    81         for( brushes; brushes != NULL; brushes = brushes->next ) 
     81        for( ; brushes != NULL; brushes = brushes->next ) 
    8282                c++; 
    8383        return c; 
     
    123123         
    124124        /* error check */ 
    125         if( *((int*) b) == 0xFEFEFEFE ) 
     125        if( *((unsigned int*) b) == 0xFEFEFEFE ) 
    126126        { 
    127127                Sys_FPrintf( SYS_VRB, "WARNING: Attempt to free an already freed brush!\n" ); 
     
    136136        /* ydnar: overwrite it */ 
    137137        memset( b, 0xFE, (int) &(((brush_t*) 0)->sides[ b->numsides ]) ); 
    138         *((int*) b) = 0xFEFEFEFE; 
     138        *((unsigned int*) b) = 0xFEFEFEFE; 
    139139         
    140140        /* free it */ 
     
    157157         
    158158        /* walk brush list */ 
    159         for( brushes; brushes != NULL; brushes = next ) 
     159        for( ; brushes != NULL; brushes = next ) 
    160160        { 
    161161                next = brushes->next; 
  • GtkRadiant/trunk/tools/quake3/q3map2/facebsp.c

    r1 r175  
    181181 
    182182        c = 0; 
    183         for( list; list != NULL; list = list->next ) 
     183        for( ; list != NULL; list = list->next ) 
    184184                c++; 
    185185        return c; 
  • GtkRadiant/trunk/tools/quake3/q3map2/mesh.c

    r1 r175  
    564564         
    565565        /* keep chopping */ 
    566         for( iterations; iterations > 0; iterations-- ) 
     566        for( ; iterations > 0; iterations-- ) 
    567567        { 
    568568                /* horizontal subdivisions */ 
  • GtkRadiant/trunk/tools/quake3/q3map2/path_init.c

    r1 r175  
    384384        for( i = 0, j = 0, k = 0; i < *argc && j < *argc; i++, j++ ) 
    385385        { 
    386                 for( j; j < *argc && argv[ j ] == NULL; j++ ); 
     386                for( ; j < *argc && argv[ j ] == NULL; j++ ); 
    387387                argv[ i ] = argv[ j ]; 
    388388                if( argv[ i ] != NULL ) 
  • GtkRadiant/trunk/tools/quake3/q3map2/surface.c

    r1 r175  
    305305                 
    306306                /* walk the surface list again until a proper surface is found */ 
    307                 for( j; j < numMapDrawSurfs; j++ ) 
     307                for( ; j < numMapDrawSurfs; j++ ) 
    308308                { 
    309309                        /* get in surface */ 
     
    485485         
    486486        /* walk the list of surfaces */ 
    487         for( numSurfs; numSurfs > 0; numSurfs--, ds++ ) 
     487        for( ; numSurfs > 0; numSurfs--, ds++ ) 
    488488        { 
    489489                /* ignore bogus (or flare) surfaces */ 
  • GtkRadiant/trunk/tools/quake3/q3map2/writebsp.c

    r1 r175  
    137137        brush_t                 *b; 
    138138        drawSurfRef_t   *dsr; 
    139         int                             i = 0; 
    140139 
    141140