This variable is never used.
This variable is never used. It is likely that the variable is simply vestigial, but it is also possible that the unused variable points out a bug.
Example: In the following code, a copy-and-paste error has lead to the same loop iterator (i
) being used twice. The variable j
is never used.
int i,j;
for (i=0; i < outer; i++) {
for (i=0; i < inner; i++) {
...
[1] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3050 CAT II
[2] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 563