This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fixes for a small number of compiler warnings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]