https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63748
Bug ID: 63748 Summary: may be used uninitialized warning on variable definition with initializer Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: amodra at gmail dot com Created attachment 33892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33892&action=edit preprocessed source Found when compiling gdb's eval.c using gcc-4.9.1 or current trunk, x86_64-linux or powerpc64-linux. /src/binutils-gdb/gdb/eval.c: In function ‘evaluate_subexp_standard’: /src/binutils-gdb/gdb/eval.c:745:16: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized] struct value *ret = NULL; ^ More bogus warnings follow with -O -Wall on the attached preprocessed source.