Menu

#273 Local variable shadowing in hunspell.cxx:442

v1.0 (example)
open
nobody
None
5
2015-05-27
2015-05-27
No

Visual Studio code analysis picked this up, a C6246.

In function putdic, at line 442:

int ret;

...shadows int ret from 435. I don't think that's what was intended.

C6246
Local declaration of 'ret' hides declaration of the same name in outer scope.
For additional information, see previous declaration at line '435'

Discussion