[llvm] r221913 - Use -Wcast-qual in cmake builds, not only autoconfo ones.
Roman Divacky
rdivacky at freebsd.org
Thu Nov 13 11:45:28 PST 2014
Author: rdivacky
Date: Thu Nov 13 13:45:27 2014
New Revision: 221913
URL: http://llvm.org/viewvc/llvm-project?rev=221913&view=rev
Log:
Use -Wcast-qual in cmake builds, not only autoconfo ones.
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=221913&r1=221912&r2=221913&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Thu Nov 13 13:45:27 2014
@@ -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
More information about the llvm-commits
mailing list