X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fparse-body.lisp;h=616b16bfe51a3e9474bb7efea73a89f73eb531c5;hb=403bacffd903f8c5787a182f4133cffc69b55dc0;hp=8a1ed022f5f4110cfa96f0b9e0de6966babd502a;hpb=24bc431a3403af05c5df601d09c0d0c27cb500b2;p=sbcl.git diff --git a/src/code/parse-body.lisp b/src/code/parse-body.lisp index 8a1ed02..616b16b 100644 --- a/src/code/parse-body.lisp +++ b/src/code/parse-body.lisp @@ -50,7 +50,15 @@ t))))) (declaration-p (x) (if (consp x) - (eq (car x) 'declare)))) + (let ((name (car x))) + (if (eq name 'declaim) + ;; technically legal, but rather unlikely to + ;; be what the user intended... + (progn + (style-warn + "DECLAIM where DECLARE was probably intended") + nil) + (eq name 'declare)))))) (tagbody :again (if forms