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

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/Makefile.extrawarn+1−0
@@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op) · 36 unmodified lines
3737 warning-2 += $(call cc-option, -Wmissing-field-initializers)
3838 warning-2 += $(call cc-option, -Wsign-compare)
3939 warning-2 += $(call cc-option, -Wmaybe-uninitialized)
40+warning-2 += $(call cc-option, -Wunused-macros)
4041
4142 warning-3 := -Wbad-function-cast
4243 warning-3 += -Wcast-qual