X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fproclaim.lisp;h=d0231ce5a0c20ca14f3554b9cbbe024a92431b98;hb=f741a144c386acdb82cac2e3352abab7cff65f1d;hp=6e7fc387617ae82201407f9966970cb98167c370;hpb=7448b6225fa43ea6a61391990b173c09505ba45d;p=sbcl.git diff --git a/src/compiler/proclaim.lisp b/src/compiler/proclaim.lisp index 6e7fc38..d0231ce 100644 --- a/src/compiler/proclaim.lisp +++ b/src/compiler/proclaim.lisp @@ -45,11 +45,10 @@ (destructuring-bind (quality raw-value) q-and-v-or-just-q (values quality raw-value))) (cond ((not (policy-quality-name-p quality)) - (let ((deprecation-warning (policy-quality-deprecation-warning quality spec))) - (if deprecation-warning - (compiler-warn deprecation-warning) - (compiler-warn "~@" - quality spec)))) + (or (policy-quality-deprecation-warning quality) + (compiler-warn + "~@" + quality spec))) ((not (typep raw-value 'policy-quality)) (compiler-warn "~@" raw-value spec))