Spurious warning in a DEFSTRUCT edge case
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Low
|
Unassigned |
Bug Description
This code should compile cleanly, but there's a warning:
* (defstruct (foo (:constructor make-foo (&aux x)))
(x nil :type fixnum))
; in: LAMBDA NIL
; (SB-INT:
; (&AUX X)
; (DECLARE)
; (BLOCK MAKE-FOO
; (SB-KERNEL:
; #<SB-KERNEL:
; ==>
; #'(SB-INT:
; (&AUX X)
; (DECLARE)
; (BLOCK MAKE-FOO
; (SB-KERNEL:
; #<SB-KERNEL:
;
; caught STYLE-WARNING:
; The variable X is defined but never used.
;
; compilation unit finished
; caught 1 STYLE-WARNING condition
FOO
Attached is a quick patch to src/code/
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
status fixcommited
Thanks for the patch! In SBCL 1.0.36.22.