Toad World® Forums

Code Analysis: Rule 6405 with constant only used in declaration

c_1 is marked with Rule 6405 (Avoid defining variables that are not referenced inside the program).
The constant is referenced by the next line though.

DECLARE
  c_1 CONSTANT NUMBER(1) := 1;
  c_2 CONSTANT NUMBER(1) := c_1 + 1;
BEGIN
  dbms_output.put_line( c_2 );
END;