This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Adding -Wshadow=local to gcc build rules
Hi!
On Wed, Sep 18, 2019 at 01:08:50PM +0000, Bernd Edlinger wrote:
> I'm currently trying to add -Wshadow=local to the gcc build rules.
> I started with -Wshadow, but gave up that idea immediately.
>
> As you could expect the current code base has plenty of shadowed
> local variables. Most are trivial to resolve, some are less trivial.
> I am not finished yet, but it is clear that it will be a rather big
> patch.
It shouldn't be a big patch. It should be a biggish collection of small
patches, most of which are trivial and obvious and you can just commit
without further approval!
Segher