Request: compiler hints should include redundant variable declaration assignments

Claus Pedersen

Member³
I have a request for compiler hints. I would like that unused assignments when declaring a variable are detected.

Code:
FUNCTION tester RETURN NUMBER IS
  var NUMBER := 1; -- this assignment is not reported
BEGIN
  var := 2;
  var := 3;
  RETURN var;
END;
I would like compiler hints to detect that the first assignment := 1 is detected in the same manner that the assignment := 2 is reported as never being used.
 
Back
Top