The variable's value is assigned but never used, making it a dead store.
This variable's value is not used. After the assignment, the variable is either assigned another value or goes out of scope.
Example: The following code excerpt assigns to the variable r
and then overwrites the value without using it.
r = getName();
r = getNewBuffer(buf);
[1] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3050 CAT II
[2] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 563