On Tue, Mar 31, 2015 at 10:33 PM, Alan Modra <amodra@gmail.com> wrote:
> 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?
>
I don't think there is a perfect solution. But I don't want to turn off
-Werror for older GCC.
--
H.J.