Ticket #1035 (closed enhancement: fixed)
special variables and declare ignore
|Reported by:||rme||Owned by:|
The spec says that a warning should be issued if a variable declared to be ignored is declared SPECIAL, as in:
(defun foo (x y) (declare (ignore y)) ... (locally (declare (special y)) ...))
That code doesn't make much sense, but it clearly deservers a warning.
(defparameter y ...) (defun foo (x y) (declare (ignore y)) ...)
is about the same thing, but the warning in both cases should probably complain that inconsistent declarations applied to Y and not just say that it "wasn't IGNOREd".