Skip to content

Commit

Permalink
Kbuild: enable -Wunused-macros warning for "make W=2"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
Johannes Thumshirn authored and masahir0y committed Aug 31, 2017
1 parent 8e9b466 commit de8cf95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/Makefile.extrawarn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de8cf95

Please sign in to comment.