Kbuild: enable -Wunused-macros warning for "make W=2"
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 30 Aug 2017 14:04:13 +0000 (16:04 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 31 Aug 2017 23:53:17 +0000 (08:53 +0900)
We have lots of dead defines and macros in drivers, lets offer users a way
to detect and eventually remove them.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.extrawarn

index fb3522fd87029f8e841469d2bb300ef6eb7fe1cb..ae8a1357d01df7f2220088cdae09dca4fcec43f3 100644 (file)
@@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op)
 warning-2 += $(call cc-option, -Wmissing-field-initializers)
 warning-2 += $(call cc-option, -Wsign-compare)
 warning-2 += $(call cc-option, -Wmaybe-uninitialized)
+warning-2 += $(call cc-option, -Wunused-macros)
 
 warning-3 := -Wbad-function-cast
 warning-3 += -Wcast-qual