Commit c90fc19c authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

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.
parent 5e63ea1f
Pipeline #2125 failed with stage
in 82 minutes and 8 seconds
......@@ -511,7 +511,10 @@ section or ? for an ask variable."
(split-string (oref inserter secondname)
(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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment