Use -Wcast-qual in cmake builds, not only autoconfo ones.

llvm-svn: 221913
This commit is contained in:
Roman Divacky 2014-11-13 19:45:27 +00:00
parent ecfa592671
commit 2d64ef9f1d
1 changed files with 1 additions and 0 deletions

View File

@ -276,6 +276,7 @@ if( MSVC )
elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
if (LLVM_ENABLE_WARNINGS)
append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append("-Wcast-qual" CMAKE_CXX_FLAGS)
# Turn off missing field initializer warnings for gcc to avoid noise from
# false positives with empty {}. Turn them on otherwise (they're off by