Description
The variable's value is assigned but never used, making it a dead store.
Potential Impact
- Other: Quality Degradation
How to Fix
Implementation
Remove unused variables from the code.
Detection Methods
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without havin...
Related Weaknesses
References
View on MITRE CWE Database →