I'll very happy if developers could add this option when compiling Kicad: -DCMAKE_CXX_FLAGS="-Wshadow"
Shadowed variables do not create issues for a compiler, but human readers are not compilers (fortunately) Using this option, I found at least one serious bug, when a shadowed var is a class member. In all cases, this is a potential source of bugs, therefore it should be avoided. Thanks. -- Jean-Pierre CHARRAS _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

