aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-17 12:22:15 +0200
committerLars Ingebrigtsen2019-06-17 12:22:15 +0200
commitc90fc19c6ca27c2e280c5f0cdc0e2299c033f355 (patch)
tree3ca6832e1b996f6bf359ef43bf50185175897c04
parent5e63ea1ff6d65832504373a9bb621e47815b0874 (diff)
downloademacs-c90fc19c6ca27c2e280c5f0cdc0e2299c033f355.tar.gz
emacs-c90fc19c6ca27c2e280c5f0cdc0e2299c033f355.zip
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.
-rw-r--r--lisp/cedet/srecode/srt-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el
index 660225925e0..0179929e7a9 100644
--- a/lisp/cedet/srecode/srt-mode.el
+++ b/lisp/cedet/srecode/srt-mode.el
@@ -511,7 +511,10 @@ section or ? for an ask variable."
511 (split-string (oref inserter secondname) 511 (split-string (oref inserter secondname)
512 ":") 512 ":")
513 nil))) 513 nil)))
514 (key (oref inserter key))) 514 (key (when (slot-exists-p inserter 'key)
515 ;; This avoids a compilation warning, but we
516 ;; know that 'key exists here.
517 (slot-value inserter (intern "key" obarray)))))
515 (cond ((null key) 518 (cond ((null key)
516 ;; A plain variable 519 ;; A plain variable
517 (cons nil base)) 520 (cons nil base))