]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Remove -Wno-pointer-to-int-cast
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 7 Aug 2017 08:35:22 +0000 (18:35 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 7 Aug 2017 08:35:22 +0000 (18:35 +1000)
CMakeLists.txt
tools/quake3/q3data/video.c

index 64f0f9da31ad0e5d210f6f6820773fcf60293f0c..5a8f62c9e208d82b425b71a0e0eb7629b8cdc7e4 100644 (file)
@@ -95,7 +95,6 @@ addflags("-Wno-unused-variable")
 addflags("-Wno-unused-parameter")
 addflags("-Wno-missing-field-initializers")
 
-addflags_c("-Wno-pointer-to-int-cast")
 addflags_c("-Wno-incompatible-pointer-types")
 
 set(CMAKE_POSITION_INDEPENDENT_CODE 1)
index 26b79a0f1454a99e31e28cd35d98e4bbf872a5e8..69c6e80ad544435422a5ceffba8cac537dc2c5bc 100644 (file)
@@ -128,7 +128,7 @@ void DumpChunks( void ){
                memcpy( str, data_p, 4 );
                data_p += 4;
                iff_chunk_len = GetLittleLong();
-               printf( "0x%x : %s (%d)\n", (int)( data_p - 4 ), str, iff_chunk_len );
+               printf( "%p : %s (%d)\n", (void *) ( data_p - 4 ), str, iff_chunk_len );
                data_p += ( iff_chunk_len + 1 ) & ~1;
        } while ( data_p < iff_end );
 }