From: TimePath Date: Mon, 7 Aug 2017 08:35:22 +0000 (+1000) Subject: Remove -Wno-pointer-to-int-cast X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6e0cea2a7a50d3cba1bc44ed2e334beac7e1c1dd;p=xonotic%2Fnetradiant.git Remove -Wno-pointer-to-int-cast --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 64f0f9da..5a8f62c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/tools/quake3/q3data/video.c b/tools/quake3/q3data/video.c index 26b79a0f..69c6e80a 100644 --- a/tools/quake3/q3data/video.c +++ b/tools/quake3/q3data/video.c @@ -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 ); }