diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-04-11 12:36:15 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-11 13:57:50 -0400 |
commit | d8caf3eb240f4b3100cd8e4f0178df9801bce537 (patch) | |
tree | 3f25927b544f303f03f5526634c53062eb1b2cad /tools/scripts | |
parent | 98d89bfd0d4b2f218ec709e90ddcab6d82d7671e (diff) |
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.include | 40 |
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 | # |
14 | EXTRA_WARNINGS := -Wformat | 14 | EXTRA_WARNINGS := -Wbad-function-cast |
15 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-security | 15 | EXTRA_WARNINGS += -Wdeclaration-after-statement |
16 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-y2k | 16 | EXTRA_WARNINGS += -Wformat-security |
17 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wshadow | 17 | EXTRA_WARNINGS += -Wformat-y2k |
18 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Winit-self | 18 | EXTRA_WARNINGS += -Winit-self |
19 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wpacked | 19 | EXTRA_WARNINGS += -Wmissing-declarations |
20 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wredundant-decls | 20 | EXTRA_WARNINGS += -Wmissing-prototypes |
21 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-aliasing=3 | 21 | EXTRA_WARNINGS += -Wnested-externs |
22 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-default | 22 | EXTRA_WARNINGS += -Wno-system-headers |
23 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-enum | 23 | EXTRA_WARNINGS += -Wold-style-definition |
24 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wno-system-headers | 24 | EXTRA_WARNINGS += -Wpacked |
25 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wundef | 25 | EXTRA_WARNINGS += -Wredundant-decls |
26 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wwrite-strings | 26 | EXTRA_WARNINGS += -Wshadow |
27 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wbad-function-cast | 27 | EXTRA_WARNINGS += -Wstrict-aliasing=3 |
28 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-declarations | 28 | EXTRA_WARNINGS += -Wstrict-prototypes |
29 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-prototypes | 29 | EXTRA_WARNINGS += -Wswitch-default |
30 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wnested-externs | 30 | EXTRA_WARNINGS += -Wswitch-enum |
31 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wold-style-definition | 31 | EXTRA_WARNINGS += -Wundef |
32 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes | 32 | EXTRA_WARNINGS += -Wwrite-strings |
33 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement | 33 | EXTRA_WARNINGS += -Wformat |
34 | 34 | ||
35 | ifneq ($(findstring $(MAKEFLAGS), w),w) | 35 | ifneq ($(findstring $(MAKEFLAGS), w),w) |
36 | PRINT_DIR = --no-print-directory | 36 | PRINT_DIR = --no-print-directory |