...
When the block is small, the danger of reusing variable names is mitigated by the visibility of the immediate declaration. Even in this case, however, variable name reuse is not desirable.
Priority: P2 Level: L3
Component | Value |
---|---|
Severity | 1 (low) |
Likelihood | 1 (unlikely) |
Remediation cost | 2 (medium) |
References
- ISO/IEC 9899-1999 5.2.4.1 Translation limits
- MISRA 04 Rule 5.2