• Ingo Molnar's avatar
    perf_counter tools: Work around warnings in older GCCs · 233f0b95
    Ingo Molnar authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    233f0b95
parse-options.c 12.2 KB