Enable -Wcovered-switch-default again, but add -Werror to the checks to make
[oota-llvm.git] / Makefile.rules
index a1edb6b7dd835c1c4ab0d77721e5e3fe31606821..a56f26edb3578b41288db85d6560919e3df05822 100644 (file)
@@ -650,7 +650,7 @@ ifndef NO_PEDANTIC
 CompileCommonOpts += -pedantic -Wno-long-long
 endif
 CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
-                     $(EXTRA_OPTIONS)
+                     $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT)
 # Enable cast-qual for C++; the workaround is to use const_cast.
 CXX.Flags += -Wcast-qual