From: Richard M. Stallman Date: Wed, 4 Dec 2002 11:46:31 +0000 (+0000) Subject: (cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid X-Git-Tag: ttn-vms-21-2-B4~12172 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0316672c0d4555f47fe6c748e382e3617af4e5f;p=emacs.git (cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid confused compiler warning. --- diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el index b0e33a97491..39347415bd1 100644 --- a/lisp/progmodes/cc-bytecomp.el +++ b/lisp/progmodes/cc-bytecomp.el @@ -266,7 +266,10 @@ the file. Don't use outside `eval-when-compile'." Don't use within `eval-when-compile'." `(eval-when-compile (if (get ',symbol 'byte-obsolete-variable) - (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil)))) + (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil) + ;; This avoids a superfluous compiler warning + ;; about calling `get' for effect. + t))) (defun cc-bytecomp-ignore-obsolete (form) ;; Wraps a call to `byte-compile-obsolete' that suppresses the warning.