Merge topic 'use-wundef'

c772810 Add the -Wundef flag when compiling CMake.
This commit is contained in:
Brad King 2013-01-10 10:22:31 -05:00 committed by CMake Topic Stage
commit 281f3d9579
1 changed files with 2 additions and 2 deletions

View File

@ -588,10 +588,10 @@ if(NOT CMake_VERSION_IS_RELEASE)
NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2) NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts
-Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -fno-common -Wmissing-format-attribute -fno-common -Wundef
) )
set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W
-Wshadow -Wpointer-arith -Wformat-security -Wshadow -Wpointer-arith -Wformat-security -Wundef
) )
foreach(FLAG_LANG C CXX) foreach(FLAG_LANG C CXX)