# VHDL134: All declared elements should be used in their corresponding scope ## Summary ```{raw} html
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | MEDIUM | Intentionality | Clear | 20min | synthesis, do254-cp14, do254, vscode, simulation, linter, cnes, cnes-std-03100 |
All declared elements should be used in their corresponding scope. Useless declarations should be removed.
procedure proc is variable tmp: std_logic; constant cst: std_logic := '0'; constant other_cst: std_logic := '1'; -- Noncompliant: "other_cst" is not used begin tmp <= cst; end proc;
procedure proc is variable tmp: std_logic; constant cst: std_logic := '0'; begin tmp <= cst; end proc;``` ## Parameters No parameters. ```{raw} html ```