History

Kbuild: enable -Wunused-macros warning for "make W=2"

We have lots of dead defines and macros in drivers, lets offer users a way to detect and eventually remove them.

Johannes Thumshirn committed 9 years ago

Commit de8cf951 parent 8e9b4661 file · +1 −0Browse files

Unified · Split

scripts/Makefile.extrawarn+1−0
@@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op) · 36 unmodified lines
37warning-2 += $(call cc-option, -Wmissing-field-initializers)37warning-2 += $(call cc-option, -Wmissing-field-initializers)
38warning-2 += $(call cc-option, -Wsign-compare)38warning-2 += $(call cc-option, -Wsign-compare)
39warning-2 += $(call cc-option, -Wmaybe-uninitialized)39warning-2 += $(call cc-option, -Wmaybe-uninitialized)
40warning-2 += $(call cc-option, -Wunused-macros)
40 41
41warning-3 := -Wbad-function-cast42warning-3 := -Wbad-function-cast
42warning-3 += -Wcast-qual43warning-3 += -Wcast-qual