[llvm-commits] [llvm] r172870 - /llvm/trunk/Makefile.rules

David Greene greened at obbligato.org
Fri Jan 18 15:22:52 PST 2013


Author: greened
Date: Fri Jan 18 17:22:52 2013
New Revision: 172870

URL: http://llvm.org/viewvc/llvm-project?rev=172870&view=rev
Log:
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.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=172870&r1=172869&r2=172870&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Fri Jan 18 17:22:52 2013
@@ -669,7 +669,8 @@
 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
 





More information about the llvm-commits mailing list