RESTART-CASE without clauses signals a STYLE-WARNING
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
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
*FEATURES*:
(:QUICKLISP :SB-BSD-
:ALIEN-CALLBACKS :ANSI-CL :C-STACK-
:COMPARE-
:INLINE-CONSTANTS :LARGEFILE :LINKAGE-TABLE :LINUX :LITTLE-ENDIAN
:MEMORY-
:OS-PROVIDES-
:OS-PROVIDES-POLL :OS-PROVIDES-PUTWC :OS-PROVIDES-
:RAW-INSTANCE-
:SB-LDB :SB-PACKAGE-LOCKS :SB-SOURCE-
:SBCL :STACK-
:STACK-
:STACK-
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
commit d8c48b14b87d355 b1e02f814d9bb82 36847bc4de
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.