CWE-563: Assignment to Variable without Use
The variable's value is assigned but never used, i.e., is a dead store. That is, after the assignment, the variable is either assigned another value or goes out of scope.
Also known as Unused Variable.
A kind of CWE-1164 Irrelevant Code.
From the CWE List. © The MITRE Corporation.