diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-12-04 11:46:31 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-12-04 11:46:31 +0000 |
commit | c0316672c0d4555f47fe6c748e382e3617af4e5f (patch) | |
tree | 5b4fc720b2668d057ca36f213a000182ad1027f4 /lisp/progmodes/cc-bytecomp.el | |
parent | 612221ab83f69a690595eb83eab0e2e606493279 (diff) | |
download | emacs-c0316672c0d4555f47fe6c748e382e3617af4e5f.tar.gz emacs-c0316672c0d4555f47fe6c748e382e3617af4e5f.tar.bz2 emacs-c0316672c0d4555f47fe6c748e382e3617af4e5f.zip |
(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
confused compiler warning.
Diffstat (limited to 'lisp/progmodes/cc-bytecomp.el')
-rw-r--r-- | lisp/progmodes/cc-bytecomp.el | 5 |
1 files changed, 4 insertions, 1 deletions
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. |