X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fdefconstant.lisp;h=1bb1d274d1e6c869aab23869f104aad1877acf0c;hb=0c8643845555805048f50c783e118762e2c43a26;hp=0b6f423095ed7f13d1b39bf36b3e35f1ba5b5571;hpb=68664fcaa607ab61bc53bce1e9795622942135a4;p=sbcl.git diff --git a/src/compiler/defconstant.lisp b/src/compiler/defconstant.lisp index 0b6f423..1bb1d27 100644 --- a/src/compiler/defconstant.lisp +++ b/src/compiler/defconstant.lisp @@ -24,9 +24,9 @@ (unless (symbolp name) (error "The constant name is not a symbol: ~S" name)) (when (looks-like-name-of-special-var-p name) - (style-warn "defining ~S as a constant, even though the name follows~@ -the usual naming convention (names like *FOO*) for special variables" - name)) + (style-warn 'sb!kernel:asterisks-around-constant-variable-name + :format-control "defining ~S as a constant" + :format-arguments (list name))) (sb!c:with-source-location (source-location) (setf (info :source-location :constant name) source-location)) (let ((kind (info :variable :kind name)))