IfSQ
DP-4—Unused Variables
Defect Indicators: (This information is currently under review and available only to Members and Fellows.)
Risks: (This information is currently under review and available only to Members and Fellows.)
Assessment: (This information is currently under review and available only to Members and Fellows.)
Remedy: (This information is currently under review and available only to Members and Fellows.)
References:
- An Empirical Study of Software Design Practices (David N. Card, Victor E. Church, and William W. Agresti), 1986.
Research Findings:
-
Unreferenced variables strong indicator for other errors:
46 percent of routines with no unused variables had no errors compared to only 17 to 29 percent for those with one or more unreferenced variables.