Mercurial > emacs
changeset 48653:eafa82fa3d92
(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
confused compiler warning.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 04 Dec 2002 11:46:31 +0000 |
parents | 682129896be4 |
children | fca058bfde80 |
files | lisp/progmodes/cc-bytecomp.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-bytecomp.el Wed Dec 04 11:44:34 2002 +0000 +++ b/lisp/progmodes/cc-bytecomp.el Wed Dec 04 11:46:31 2002 +0000 @@ -266,7 +266,10 @@ 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.