[llvm] r258181 - Fix bootstrap -Werror builds after clang r258128
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 12:52:17 PST 2016
Author: nico
Date: Tue Jan 19 14:52:17 2016
New Revision: 258181
URL: http://llvm.org/viewvc/llvm-project?rev=258181&view=rev
Log:
Fix bootstrap -Werror builds after clang r258128
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=258181&r1=258180&r2=258181&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jan 19 14:52:17 2016
@@ -403,6 +403,9 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append("-Wcast-qual" CMAKE_CXX_FLAGS)
+ # FIXME: Clean up the codebase, then remove this flag.
+ add_flag_if_supported("-Wno-expansion-to-defined" EXPANSION_TO_DEFINED_FLAG)
+
# Turn off missing field initializer warnings for gcc to avoid noise from
# false positives with empty {}. Turn them on otherwise (they're off by
# default for clang).
More information about the llvm-commits
mailing list