From 9778d5c0b4c27e885516002193666df5ced2c217 Mon Sep 17 00:00:00 2001 From: David Greene Date: Fri, 18 Jan 2013 23:22:52 +0000 Subject: Pass NO_MISSING_FIELD_INITIALIZERS to Compiler Flags configure checks whether -Wno-missing-field-initializers is a valid compiler flag but it was never actually used in Makefile.rules. Enable it to avoid some ridiculous warnings from gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172870 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index 59bab8f..2a0f1dc 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -669,7 +669,8 @@ CompileCommonOpts += -pedantic -Wno-long-long endif CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \ $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \ - $(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) + $(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) \ + $(NO_MISSING_FIELD_INITIALIZERS) # Enable cast-qual for C++; the workaround is to use const_cast. CXX.Flags += -Wcast-qual -- cgit v1.1