Hi,
 
Thanks for the report.
 
The first warning is a false positive, since a declaration without initializer doesn't contain actual instructions to be executed.
 
Regarding the second warning, I'll add a pair of braces, to make the warning go away.
 
Pádraig Brady wrote:
However there is a cognitive load to determine that in general.
IMHO any code with gotos should have all variables declared/initialized
before any gotos.
I've seen cases where most of the cognitive load comes from the gotos and the resulting confusing control flow. In these cases the best action would be to use common control structures instead of goto. But I didn't succeed in doing that in all cases.
 
Bruno
 

Reply via email to