Skip to content

Commit de8cf95

Browse files
Johannes Thumshirnmasahir0y
authored andcommitted
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. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 8e9b466 commit de8cf95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/Makefile.extrawarn‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op)
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

0 commit comments

Comments
 (0)