]> git.eshelyaron.com Git - emacs.git/commitdiff
(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
authorRichard M. Stallman <rms@gnu.org>
Wed, 4 Dec 2002 11:46:31 +0000 (11:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 4 Dec 2002 11:46:31 +0000 (11:46 +0000)
confused compiler warning.

lisp/progmodes/cc-bytecomp.el

index b0e33a97491a1c5ace3f74db856d02d3b36c9fb9..39347415bd1d82d199e70ce0ab6245c1887e493c 100644 (file)
@@ -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.