restart-case: Spurious unused variable warnings.
authorStas Boukarev <stassats@gmail.com>
Sun, 3 Feb 2013 09:38:29 +0000 (13:38 +0400)
committerStas Boukarev <stassats@gmail.com>
Sun, 3 Feb 2013 09:38:29 +0000 (13:38 +0400)
restart-case without any restart clauses used to signal an unused
variable warning, add ignorable declaration.
Fixes lp#1113859

src/code/defboot.lisp

index 050489b..9f3bf28 100644 (file)
@@ -549,6 +549,7 @@ evaluated as a PROGN."
                    clauses))))
       `(block ,block-tag
          (let ((,temp-var nil))
+           (declare (ignorable ,temp-var))
            (tagbody
             (restart-bind
                 ,(mapcar (lambda (datum)