Skip to content

Instantly share code, notes, and snippets.

@mdutton3
Created November 7, 2013 23:27
Show Gist options
  • Save mdutton3/7363667 to your computer and use it in GitHub Desktop.
Save mdutton3/7363667 to your computer and use it in GitHub Desktop.
This bug/warning confused me for several minutes...doh. For the record - I didn't write this crap.
for( int j = ... )
{
int i0; // WARNING: Unreferenced local variable
int i1 = SomeComputation();
for( int i = 0, i0 = i1; i < k; i = i1, i1 = i3 )
{
if( i1 == k )
{
if( !strstr( m_arr[j].strName, "loop" ) )
{
break;
}
else
{
i2 = 0, i3 = i0;
}
}
/* blah blah nothhing to do with i0 */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment