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:
parent
5e63ea1ff6
commit
c90fc19c6c
1 changed files with 4 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue