aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Petkov2012-04-11 11:36:15 -0500
committerArnaldo Carvalho de Melo2012-04-11 12:57:50 -0500
commitd8caf3eb240f4b3100cd8e4f0178df9801bce537 (patch)
tree3f25927b544f303f03f5526634c53062eb1b2cad /tools/scripts
parent98d89bfd0d4b2f218ec709e90ddcab6d82d7671e (diff)
downloadkernel-omap-d8caf3eb240f4b3100cd8e4f0178df9801bce537.tar.gz
kernel-omap-d8caf3eb240f4b3100cd8e4f0178df9801bce537.tar.xz
kernel-omap-d8caf3eb240f4b3100cd8e4f0178df9801bce537.zip
tools: Cleanup EXTRA_WARNINGS
Use += instead of the bash syntax, as Sam Ravnborg suggests. Also, sort the -W options alphabetically and (... keep them sorted). Suggested-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Michal Marek <mmarek@suse.cz> Cc: Sam Ravnborg <sam@ravnborg.org> Link: http://lkml.kernel.org/r/1334162178-17152-3-git-send-email-bp@amd64.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/scripts')
-rw-r--r--tools/scripts/Makefile.include40
1 files changed, 20 insertions, 20 deletions
diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index 52348d3bd8d3..87b55a729a5f 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -11,26 +11,26 @@ endif
11# 11#
12# Include saner warnings here, which can catch bugs: 12# Include saner warnings here, which can catch bugs:
13# 13#
14EXTRA_WARNINGS := -Wformat 14EXTRA_WARNINGS := -Wbad-function-cast
15EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-security 15EXTRA_WARNINGS += -Wdeclaration-after-statement
16EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-y2k 16EXTRA_WARNINGS += -Wformat-security
17EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wshadow 17EXTRA_WARNINGS += -Wformat-y2k
18EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Winit-self 18EXTRA_WARNINGS += -Winit-self
19EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wpacked 19EXTRA_WARNINGS += -Wmissing-declarations
20EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wredundant-decls 20EXTRA_WARNINGS += -Wmissing-prototypes
21EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-aliasing=3 21EXTRA_WARNINGS += -Wnested-externs
22EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-default 22EXTRA_WARNINGS += -Wno-system-headers
23EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-enum 23EXTRA_WARNINGS += -Wold-style-definition
24EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wno-system-headers 24EXTRA_WARNINGS += -Wpacked
25EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wundef 25EXTRA_WARNINGS += -Wredundant-decls
26EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wwrite-strings 26EXTRA_WARNINGS += -Wshadow
27EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wbad-function-cast 27EXTRA_WARNINGS += -Wstrict-aliasing=3
28EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-declarations 28EXTRA_WARNINGS += -Wstrict-prototypes
29EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-prototypes 29EXTRA_WARNINGS += -Wswitch-default
30EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wnested-externs 30EXTRA_WARNINGS += -Wswitch-enum
31EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wold-style-definition 31EXTRA_WARNINGS += -Wundef
32EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes 32EXTRA_WARNINGS += -Wwrite-strings
33EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement 33EXTRA_WARNINGS += -Wformat
34 34
35ifneq ($(findstring $(MAKEFLAGS), w),w) 35ifneq ($(findstring $(MAKEFLAGS), w),w)
36PRINT_DIR = --no-print-directory 36PRINT_DIR = --no-print-directory