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:
parent
612221ab83
commit
c0316672c0
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue