From ac2b7da3c0a2a2e89c6a081d2c8a19add30d5d29 Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Tue, 11 Oct 2011 18:10:31 +0000 Subject: [PATCH] "fix" warnings --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22fca257ed8..67dc05d8dd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,9 +226,10 @@ IF (PEDANTIC) ADD_DEFINITIONS( /wd4610 ) # user defined constructor required (sqlite3_index_info) ADD_DEFINITIONS( /wd4706 ) # assignment within conditional expression (pal) ELSE (MSVC) - ADD_DEFINITIONS( -Wall -Wextra -Wredundant-decls -Wno-long-long -Wformat-security -Wno-strict-aliasing ) + ADD_DEFINITIONS( -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing ) # Qt produces lots of warnings with strict aliasing (as of Qt 4.4.0 & GCC 4.3) - # ADD_DEFINITIONS( -fstrict-aliasing -Wstrict-aliasing=1 ) + # There are redundant declarations in Qt and GDAL + # ADD_DEFINITIONS( -fstrict-aliasing -Wstrict-aliasing=1 -Wredundant-decls ) ENDIF (MSVC) ENDIF (PEDANTIC)