diff options
| author | Johannes Thumshirn <jthumshirn@suse.de> | 2017-08-30 10:04:13 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-08-31 19:53:17 -0400 |
| commit | de8cf95047cfe06d0bc3b7bbbe4fd337d47da2c7 (patch) | |
| tree | 4cd57209914d2b92092078c7e55124e524fc3d11 /scripts | |
| parent | 8e9b466799230bc20a029579e92d4cd526e5a2e1 (diff) | |
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>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.extrawarn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index fb3522fd8702..ae8a1357d01d 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn | |||
| @@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op) | |||
| 37 | warning-2 += $(call cc-option, -Wmissing-field-initializers) | 37 | warning-2 += $(call cc-option, -Wmissing-field-initializers) |
| 38 | warning-2 += $(call cc-option, -Wsign-compare) | 38 | warning-2 += $(call cc-option, -Wsign-compare) |
| 39 | warning-2 += $(call cc-option, -Wmaybe-uninitialized) | 39 | warning-2 += $(call cc-option, -Wmaybe-uninitialized) |
| 40 | warning-2 += $(call cc-option, -Wunused-macros) | ||
| 40 | 41 | ||
| 41 | warning-3 := -Wbad-function-cast | 42 | warning-3 := -Wbad-function-cast |
| 42 | warning-3 += -Wcast-qual | 43 | warning-3 += -Wcast-qual |
