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>
Showing
- tools/perf/Makefile 1 addition, 1 deletiontools/perf/Makefile
- tools/perf/builtin-annotate.c 6 additions, 6 deletionstools/perf/builtin-annotate.c
- tools/perf/builtin-help.c 4 additions, 2 deletionstools/perf/builtin-help.c
- tools/perf/builtin-list.c 1 addition, 1 deletiontools/perf/builtin-list.c
- tools/perf/builtin-record.c 2 additions, 2 deletionstools/perf/builtin-record.c
- tools/perf/builtin-report.c 11 additions, 11 deletionstools/perf/builtin-report.c
- tools/perf/builtin-stat.c 10 additions, 8 deletionstools/perf/builtin-stat.c
- tools/perf/builtin-top.c 4 additions, 4 deletionstools/perf/builtin-top.c
- tools/perf/perf.c 1 addition, 4 deletionstools/perf/perf.c
- tools/perf/perf.h 2 additions, 0 deletionstools/perf/perf.h
- tools/perf/util/alias.c 1 addition, 1 deletiontools/perf/util/alias.c
- tools/perf/util/cache.h 1 addition, 0 deletionstools/perf/util/cache.h
- tools/perf/util/callchain.c 8 additions, 7 deletionstools/perf/util/callchain.c
- tools/perf/util/callchain.h 5 additions, 5 deletionstools/perf/util/callchain.h
- tools/perf/util/color.c 7 additions, 3 deletionstools/perf/util/color.c
- tools/perf/util/config.c 10 additions, 8 deletionstools/perf/util/config.c
- tools/perf/util/exec_cmd.c 4 additions, 1 deletiontools/perf/util/exec_cmd.c
- tools/perf/util/help.c 15 additions, 11 deletionstools/perf/util/help.c
- tools/perf/util/help.h 3 additions, 3 deletionstools/perf/util/help.h
- tools/perf/util/parse-events.c 1 addition, 1 deletiontools/perf/util/parse-events.c
Loading
Please register or sign in to comment