This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld warning fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 17 Feb 2005 23:35:08 +1030
- Subject: ld warning fix
gcc-4.0 is rather neat in that it can analyse whether aggregates are
all initialized or not.
* ldexp.c (new_abs): Init new.str.
Index: ld/ldexp.c
===================================================================
RCS file: /cvs/src/src/ld/ldexp.c,v
retrieving revision 1.42
diff -u -p -r1.42 ldexp.c
--- ld/ldexp.c 21 Jan 2005 04:15:58 -0000 1.42
+++ ld/ldexp.c 17 Feb 2005 11:15:32 -0000
@@ -144,6 +144,7 @@ new_abs (bfd_vma value)
new.valid_p = TRUE;
new.section = abs_output_section;
new.value = value;
+ new.str = NULL;
return new;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre