[PATCH] Fixes for a small number of compiler warnings
Alan Modra
amodra@gmail.com
Wed Apr 1 05:33:00 GMT 2015
On Tue, Mar 31, 2015 at 08:57:19PM -0700, H.J. Lu wrote:
> How about something like
>
> struct bfd_link_hash_entry
> SILENCE_UNINIT_WARNING_WITH_SELF_ASSIGN (ehdr_start_save);
>
> We define it to self-assign only for those affect GCCs.
Heh, hide it away so it doesn't offend my sense of style? :)
Well, maybe, but it doesn't seem worth cluttering up the source.
Nowadays -Werror is turned off by default for releases. Perhaps we
should turn off -Werror for development if an older gcc is detected?
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list