RESTART-CASE without clauses signals a STYLE-WARNING

Bug #1113859 reported by Jan Moringen on 2013-02-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Compiling RESTART-CASE forms without clauses such as

  (restart-case 1)

causes a STYLE-WARNING for an unused variable to be signaled.

I expected this code to either compile without signaling any warnings or to compile/fail to compile with a more specific warning/error. The Hyperspec seems to allow RESTART-CASE without clauses.

sbcl --version:
SBCL 1.1.3

uname -a:
Linux ferberit 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:05:29 UTC 2013 i686 i686 i686 GNU/Linux


Stas Boukarev (stassats) wrote :

commit d8c48b14b87d355b1e02f814d9bb8236847bc4de
Author: Stas Boukarev <email address hidden>
Date: Sun Feb 3 13:38:29 2013 +0400

    restart-case: Spurious unused variable warnings.

    restart-case without any restart clauses used to signal an unused
    variable warning, add ignorable declaration.

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers