aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-bytecomp.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-12-04 11:46:31 +0000
committerRichard M. Stallman <[email protected]>2002-12-04 11:46:31 +0000
commitc0316672c0d4555f47fe6c748e382e3617af4e5f (patch)
tree5b4fc720b2668d057ca36f213a000182ad1027f4 /lisp/progmodes/cc-bytecomp.el
parent612221ab83f69a690595eb83eab0e2e606493279 (diff)
(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.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el
index b0e33a9749..39347415bd 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.