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 | b609a263551fc3e36a04ec10928fb78eebea7af9 (patch) | |
tree | dcd32f03f47220b1c9cbcfc378c5a8abf11d2cb8 | |
parent | 4b6459f33f8a345b6c5b60feee3b67c8aa318d2a (diff) | |
download | bcm5719-llvm-b609a263551fc3e36a04ec10928fb78eebea7af9.tar.gz bcm5719-llvm-b609a263551fc3e36a04ec10928fb78eebea7af9.zip |
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.
llvm-svn: 172870
-rw-r--r-- | llvm/Makefile.rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 59bab8fcff3..2a0f1dc1c74 100644 --- a/llvm/Makefile.rules +++ b/llvm/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 |