perf_counter tools: Add more warnings and fix/annotate them
authorIngo Molnar <mingo@elte.hu>
Wed, 1 Jul 2009 10:37:06 +0000 (12:37 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 1 Jul 2009 10:49:48 +0000 (12:49 +0200)
commitf37a291c527c954df4da568de718ebb36b8261c0
treebb4863fbd185fbfef5f7d28cb4001d59d4123a2d
parent88a69dfbc6ab1e3b51bba8c9103055e21089ebb9
perf_counter tools: Add more warnings and fix/annotate them

Enable -Wextra. This found a few real bugs plus a number
of signed/unsigned type mismatches/uncleanlinesses. It
also required a few annotations

All things considered it was still worth it so lets try with
this enabled for now.

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>
27 files changed:
tools/perf/Makefile
tools/perf/builtin-annotate.c
tools/perf/builtin-help.c
tools/perf/builtin-list.c
tools/perf/builtin-record.c
tools/perf/builtin-report.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/perf.c
tools/perf/perf.h
tools/perf/util/alias.c
tools/perf/util/cache.h
tools/perf/util/callchain.c
tools/perf/util/callchain.h
tools/perf/util/color.c
tools/perf/util/config.c
tools/perf/util/exec_cmd.c
tools/perf/util/help.c
tools/perf/util/help.h
tools/perf/util/parse-events.c
tools/perf/util/parse-options.c
tools/perf/util/parse-options.h
tools/perf/util/quote.c
tools/perf/util/quote.h
tools/perf/util/strbuf.c
tools/perf/util/strbuf.h
tools/perf/util/wrapper.c