X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fdefconstant.lisp;h=db7d6286a2e7c769a1fe88d821cea1d979f356ad;hb=7f579b076a1fc54587538ead07e506e7f06f3fe8;hp=9cc011cb0812e080e9b79767944a7caacda01663;hpb=5d04a95274c9ddaebbcd6ddffc5d646e2c25598c;p=sbcl.git diff --git a/src/compiler/defconstant.lisp b/src/compiler/defconstant.lisp index 9cc011c..db7d628 100644 --- a/src/compiler/defconstant.lisp +++ b/src/compiler/defconstant.lisp @@ -24,7 +24,7 @@ (unless (symbolp name) (error "The constant name is not a symbol: ~S" name)) (when (looks-like-name-of-special-var-p name) - (style-warn 'sb!kernel:ignoring-asterisks-in-constant-variable-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) @@ -43,7 +43,7 @@ (if (boundp name) (if (typep name '(or boolean keyword)) ;; Non-continuable error. - (about-to-modify-symbol-value name "define ~S as a constant") + (about-to-modify-symbol-value name 'defconstant) (let ((old (symbol-value name))) (unless (eql value old) (multiple-value-bind (ignore aborted) @@ -57,7 +57,7 @@ (when aborted (return-from sb!c::%defconstant name)))))) (warn "redefining a MAKUNBOUND constant: ~S" name))) - (:global + (:unknown ;; (This is OK -- undefined variables are of this kind. So we ;; don't warn or error or anything, just fall through.) )