perf_counter tools: Work around warnings in older GCCs
authorIngo Molnar <mingo@elte.hu>
Wed, 3 Jun 2009 19:48:40 +0000 (21:48 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 3 Jun 2009 19:50:44 +0000 (21:50 +0200)
commit233f0b95ca3a0d1dcbd70bc7e519069a8e10d23e
treea227a79b15d489f6037d281feb0f84bdba391c4a
parent18374ab76e3ec1cf1b0ca5a8d08e35cfc5d01669
perf_counter tools: Work around warnings in older GCCs

GCC 4.1.2 produces:

 util/parse-options.c: In function ‘get_value’:
 util/parse-options.c:36: warning: ‘arg’ may be used uninitialized in this function

 builtin-top.c: In function ‘display_thread’:
 builtin-top.c:178: warning: ‘printed’ may be used uninitialized in this function

Annotate them away by initializing these variables to 0.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-top.c
Documentation/perf_counter/util/parse-options.c