libbacktrace patch committed: Always clear union in read_attribute
Ian Lance Taylor
iant@google.com
Tue Nov 20 17:28:00 GMT 2012
http://gcc.gnu.org/ml/gcc-regression/2012-11/msg00279.html points out a
may-be-used-uninitialized warning, turned into an error, when building
libbacktrace. The warning is incorrect: the value is initialized. The
warning will no longer turn into an error. But it is easy enough to
force an initialization to avoid the warning. That is what this patch
does. Bootstrapped and ran libbacktrace testsuite on
x86_64-unknown-linux-gnu. Committed to mainline.
Ian
2012-11-20 Ian Lance Taylor <iant@google.com>
* dwarf.c (read_attribute): Always clear val.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 589 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121120/a9fb6c79/attachment.bin>
More information about the Gcc-patches
mailing list