Closed marxin closed 5 years ago
I think it would be good to fix those indeed. -Wshadow=local
can be added to https://github.com/godotengine/godot/blob/master/SConstruct#L335-L340 as you suggested, preferably after or while fixing the warnings listed above (otherwise our CI builds with -Werror
will start failing now).
Good, let me work on it.
I was thinking about that one more time and it's probably too strict to deal with all the warnings. That said, I'm not planning to work on that. Maybe we can close it?
Well even if we don't add -Wshadow=local
to the warnings, I think it would be good to fix some of those warnings, so the issue can be kept.
Ok, if you see it profitable, then I can prepare patch for it.
I've just done stupid -Wshadow=local error in #25314. My question is whether the project will be interested in fixing these.
There's a list of 267 warnings I see: