-Wshadow and older versions of gcc

Nick Clifton nickc@redhat.com
Tue Apr 6 11:42:00 GMT 2010


Hi Alan,

> I've had reason to build recent binutils on older systems, and often
> run into build errors due to -Wshadow.  Other people do too.  eg.
> http://sourceware.org/ml/binutils/2010-01/msg00334.html
> I propose we turn off -Wshadow unless using gcc-4.  Comments?

I think that this is a good idea.  Enabling -Wshadow has been 
controversial enough without having it break builds with older toolchains.

Cheers
   Nick



More information about the Binutils mailing list