1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid

confused compiler warning.
This commit is contained in:
Richard M. Stallman 2002-12-04 11:46:31 +00:00
parent 612221ab83
commit c0316672c0

View 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.