This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Build trunk got error
On Jan 9, 2012, at 2:30 AM, Hui Zhu wrote:
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I.
> -I../../src/bfd -I../../src/bfd/../include -DHAVE_all_vecs
> -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT mach-o.lo -MD -MP -MF
> .deps/mach-o.Tpo -c ../../src/bfd/mach-o.c -o mach-o.o
> cc1: warnings being treated as errors
> ../../src/bfd/mach-o.c: In function ‘bfd_mach_o_build_commands’:
> ../../src/bfd/mach-o.c:2234:31: error: ‘seg’ may be used uninitialized
> in this function
Thanks, fixed by:
bfd/
2012-01-10 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
warning.
(Sorry for the non-context diff).
===================================================================
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.92
diff -r1.92 mach-o.c
2157c2157
< bfd_mach_o_segment_command *seg;
---
> bfd_mach_o_segment_command *seg = NULL;
Tristan.