Warn only when defining such a function, not when using it.
Reported by Douglas Katzman.
context))
((:function nil)
(check-fun-name name)
- (note-if-setf-fun-and-macro name)
(let ((expansion (fun-name-inline-expansion name))
(inlinep (info :function :inlinep name)))
(setf (gethash name *free-funs*)
(and
(defun (setf test-984) ())
nil)
- (style-warning () t))))
+ (style-warning () t)))
+ (assert
+ (handler-case
+ (and
+ (compile nil `(lambda () #'(setf test-984)))
+ t)
+ (warning () nil))))
(with-test (:name :compile-setf-function)
(defun (setf compile-setf) ())