You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning for variable used in ctor but not in standard func #640
structFoo {int i;}
voidfoo(int){}
voidmain()
{
size_t i1; // [warn]: Variable i1 is never modified and could have been declared const or immutable.newFoo(i1);
size_t i2; // nothing here
foo(i2);
}
The bug is that there should not be any warning for i1.
Activity
Merge pull request #641 from BBasile/issue-640