ld warning fix
Alan Modra
amodra@bigpond.net.au
Thu Feb 17 18:36:00 GMT 2005
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
More information about the Binutils
mailing list