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 64f0f9d..5a8f62c 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 26b79a0..69c6e80 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 );
 }