CWE-563—Assignment to Variable without Use
PUBLISHEDweakness record
released 2006-07-19 · last modified 2025-12-11
Metadata
名称
Assignment to Variable without Use
描述
The variable's value is assigned but never used, making it a dead store.
After the assignment, the variable is either assigned another value or goes out of scope. It is likely that the variable is simply vestigial, but it is also possible that the unused variable points out a bug.