This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] [PATCH v5 6/7] compile: New 'compile print'


GCC 4.9 emits -Wmaybe-uninitialized warnings for the function get_out_value_type():


/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c: In function ʽcompile_object_loadʼ:
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:419:20: error: ʽblockʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   gdb_ptr_type_sym = block_lookup_symbol (block, COMPILE_I_EXPR_PTR_TYPE,
                    ^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:376:23: note: ʽblockʼ was declared here
   const struct block *block;
                       ^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:416:12: error: ʽgdb_val_symʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   gdb_type = SYMBOL_TYPE (gdb_val_sym);
            ^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:374:37: note: ʽgdb_val_symʼ was declared here
   struct symbol *gdb_ptr_type_sym, *gdb_val_sym;
                                     ^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:406:10: error: ʽfunctionʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
       if (function != NULL
          ^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:387:22: note: ʽfunctionʼ was declared here
       struct symbol *function;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]