From c231d94e0f620bc25c76415e09f7dea939064bd8 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 24 Jan 2014 17:19:13 -0800 Subject: [PATCH] Makefile: enable -Wshadow by default Now that all -Wshadow build warnings/errors are fixed, turn on -Wshadow by default to make sure we would catch new potential shadow warnings. Signed-off-by: Florian Fainelli --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70abf05..afc0ce0 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ CONFIG_LOCALVERSION = CPPFLAGS = -I libfdt -I . WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ - -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls + -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow CFLAGS = -g -Os -fPIC -Werror $(WARNINGS) BISON = bison