X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Finfo-functions.lisp;h=d763505a4fe408c836324c40891da9f2dfb94d4a;hb=7f1e94ae961a198e00daf281eb1dc858e5b2dcc7;hp=ea876b7c16ab32340cc1edfb0886dc8a0d0d11ce;hpb=39c9c1d494f6d8a42c6f701ef1db4f688fe1b310;p=sbcl.git diff --git a/src/compiler/info-functions.lisp b/src/compiler/info-functions.lisp index ea876b7..d763505 100644 --- a/src/compiler/info-functions.lisp +++ b/src/compiler/info-functions.lisp @@ -85,9 +85,10 @@ ;;; can't assume that they aren't just naming a function (SETF FOO) ;;; for the heck of it. NAME is already known to be well-formed. (defun note-if-setf-fun-and-macro (name) - (when (consp name) - (when (or (info :setf :inverse name) - (info :setf :expander name)) + (when (and (consp name) + (eq (car name) 'setf)) + (when (or (info :setf :inverse (second name)) + (info :setf :expander (second name))) (compiler-style-warn "defining as a SETF function a name that already has a SETF macro:~ ~% ~S"