Disable -Wuninitialized for gcc
[oota-llvm.git] / Makefile.rules
index c64275f11e48f41ca5ea1d619d741681ae523715..59bab8fcff3a15daaed21ebb27f5825e9a9502c6 100644 (file)
@@ -668,7 +668,8 @@ ifndef NO_PEDANTIC
 CompileCommonOpts += -pedantic -Wno-long-long
 endif
 CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
-                     $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT)
+                     $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \
+                     $(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED)
 # Enable cast-qual for C++; the workaround is to use const_cast.
 CXX.Flags += -Wcast-qual