1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

Suppress compilation warning in srt-mode

* lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): Check
for the existence of `key' in the macro before using it, and
suppress the warning.
This commit is contained in:
Lars Ingebrigtsen 2019-06-17 12:22:15 +02:00
parent 5e63ea1ff6
commit c90fc19c6c

View file

@ -511,7 +511,10 @@ section or ? for an ask variable."
(split-string (oref inserter secondname)
":")
nil)))
(key (oref inserter key)))
(key (when (slot-exists-p inserter 'key)
;; This avoids a compilation warning, but we
;; know that 'key exists here.
(slot-value inserter (intern "key" obarray)))))
(cond ((null key)
;; A plain variable
(cons nil base))