@@ -86,7 +86,8 @@ DISABLE_WARNING_FLAGS := $(call cc-disable-warning, format-truncation) \
# Warnings that we want by default
ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough) \
- $(call cc-option, -Wmissing-prototypes)
+ $(call cc-option, -Wmissing-prototypes) \
+ -Wshadow
ASFLAGS =
@@ -60,7 +60,6 @@ warning-2 := -Waggregate-return
warning-2 += -Wcast-align
warning-2 += -Wdisabled-optimization
warning-2 += -Wnested-externs
-warning-2 += -Wshadow
warning-2 += $(call cc-option, -Wlogical-op)
warning-2 += $(call cc-option, -Wmissing-field-initializers)
warning-2 += $(call cc-option, -Wformat-truncation)
With all the known one fixed, we can enable -Wshadow now. Signed-off-by: Qu Wenruo <wqu@suse.com> --- Makefile | 3 ++- Makefile.extrawarn | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)