Skip to content

Commit ac2b7da

Browse files
committedOct 11, 2011
"fix" warnings
1 parent 0e99d43 commit ac2b7da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ IF (PEDANTIC)
226226
ADD_DEFINITIONS( /wd4610 ) # user defined constructor required (sqlite3_index_info)
227227
ADD_DEFINITIONS( /wd4706 ) # assignment within conditional expression (pal)
228228
ELSE (MSVC)
229-
ADD_DEFINITIONS( -Wall -Wextra -Wredundant-decls -Wno-long-long -Wformat-security -Wno-strict-aliasing )
229+
ADD_DEFINITIONS( -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing )
230230
# Qt produces lots of warnings with strict aliasing (as of Qt 4.4.0 & GCC 4.3)
231-
# ADD_DEFINITIONS( -fstrict-aliasing -Wstrict-aliasing=1 )
231+
# There are redundant declarations in Qt and GDAL
232+
# ADD_DEFINITIONS( -fstrict-aliasing -Wstrict-aliasing=1 -Wredundant-decls )
232233
ENDIF (MSVC)
233234
ENDIF (PEDANTIC)
234235

0 commit comments

Comments
 (0)
Please sign in to comment.