From: David Greene Date: Fri, 18 Jan 2013 23:22:52 +0000 (+0000) Subject: Pass NO_MISSING_FIELD_INITIALIZERS to Compiler Flags X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9778d5c0b4c27e885516002193666df5ced2c217;p=oota-llvm.git 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 --- diff --git a/Makefile.rules b/Makefile.rules index 59bab8fcff3..2a0f1dc1c74 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