PATCH COMMITTED: PR 6493: Work around -D_FORTIFY_SOURCE

Ian Lance Taylor iant@google.com
Fri May 9 14:16:00 GMT 2008


PR 6493 is about a warning in gold when compiling with
-D_FORTIFY_SOURCE (at least, I assume they are using that -D option,
as otherwise the bug report does not make sense).  In this case gold
is calling write in an error case, so it is correctly ignoring the
return value.  This patch adds some pointless uses of the return value
to avoid the warning.

Ian


2008-05-09  Ian Lance Taylor  <iant@google.com>

	PR 6493
	* gold.cc (gold_nomem): Use return value of write.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1046 bytes
Desc: Work around -D_FORTIFY_SOURCE
URL: <https://sourceware.org/pipermail/binutils/attachments/20080509/b082c1ac/attachment.bin>


More information about the Binutils mailing list