On Wed, Sep 18, 2019 at 3:09 PM Bernd Edlinger <bernd.edlin...@hotmail.de> wrote: > > Hi, > > 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. > > I would like to ask you if you agree that would be a desirable step, > in improving code quality in the gcc tree.
I wonder if -Wshadow=compatible-local is easier to achieve? Richard. > > > Thanks > Bernd.