forked from OSchip/llvm-project
Use -Wcast-qual in cmake builds, not only autoconfo ones.
llvm-svn: 221913
This commit is contained in:
parent
ecfa592671
commit
2d64ef9f1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue