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;