diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-02 08:50:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-02 08:50:23 -0400 |
commit | 61562445c80452ec417fb6a6895b991f6c1dd930 (patch) | |
tree | 75640ada31975da568c3c5352e36f55bbfcdadf4 /tools/perf/Makefile | |
parent | 561f732c1233f6bf7c3c5c5fb9b4d90bb6c107aa (diff) |
perf tools: Clean up warnings list in the Makefile
Make it easier to turn warnings on/off by using a separate
line for each warning added.
Some of the warnings have too much of a nuisance factor and
we might want to turn them off in the future.
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index c481a513f551..9f8d207a91bf 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -169,7 +169,30 @@ endif | |||
169 | # | 169 | # |
170 | # Include saner warnings here, which can catch bugs: | 170 | # Include saner warnings here, which can catch bugs: |
171 | # | 171 | # |
172 | EXTRA_WARNINGS = -Wcast-align -Wformat -Wformat-security -Wformat-y2k -Wshadow -Winit-self -Wpacked -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch-default -Wswitch-enum -Wno-system-headers -Wundef -Wvolatile-register-var -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wdeclaration-after-statement | 172 | |
173 | EXTRA_WARNINGS := -Wcast-align | ||
174 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat | ||
175 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-security | ||
176 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-y2k | ||
177 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wshadow | ||
178 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Winit-self | ||
179 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wpacked | ||
180 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wredundant-decls | ||
181 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstack-protector | ||
182 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-aliasing=3 | ||
183 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-default | ||
184 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-enum | ||
185 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wno-system-headers | ||
186 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wundef | ||
187 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wvolatile-register-var | ||
188 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wwrite-strings | ||
189 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wbad-function-cast | ||
190 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-declarations | ||
191 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-prototypes | ||
192 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wnested-externs | ||
193 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wold-style-definition | ||
194 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes | ||
195 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement | ||
173 | 196 | ||
174 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) | 197 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) |
175 | LDFLAGS = -lpthread -lrt -lelf -lm | 198 | LDFLAGS = -lpthread -lrt -lelf -lm |