Mercurial > emacs
diff lisp/progmodes/cc-bytecomp.el @ 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 | 2ac046f0f384 |
| children | bc91cbf50c24 d7ddb3e565de |
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.
