From 70c6fe4d8d5512e03378992bbe03085070d4105e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 19 Jan 2016 20:52:17 +0000 Subject: [PATCH] Fix bootstrap -Werror builds after clang r258128 llvm-svn: 258181 --- cmake/modules/HandleLLVMOptions.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 6db258ff66a..c946b791cb4 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -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).