diff options
author | David Greene <greened@obbligato.org> | 2013-01-18 23:22:52 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2013-01-18 23:22:52 +0000 |
commit | 9778d5c0b4c27e885516002193666df5ced2c217 (patch) | |
tree | 1b3cc31d7757313e10ce396a80d77673d7d374b6 /Makefile.rules | |
parent | 48177ac90fb940833b9deea1a6716092348cfe82 (diff) |
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 59bab8fcff..2a0f1dc1c7 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 |