summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/fw.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-05-22 20:07:14 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-22 20:07:22 +0200
commit3f746d44decf9f991ee2a0a0529a2bba9ad12988 (patch)
treef5af465f56eee1cb57a3fda8aeafe001b249bca1 /lisp/cedet/semantic/fw.el
parenta0524584e93a66278dcf7bb998398f7484f9e8b5 (diff)
downloademacs-3f746d44decf9f991ee2a0a0529a2bba9ad12988.tar.gz
Fix compilation warning in semantic-install-function-overrides
* lisp/cedet/semantic/fw.el (semantic-install-function-overrides): Suppress message about wrong number of arguments.
Diffstat (limited to 'lisp/cedet/semantic/fw.el')
-rw-r--r--lisp/cedet/semantic/fw.el23
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 14ed3e97ed5..c60778a34da 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -278,17 +278,18 @@ OVERRIDES will be installed globally for this major mode. If MODE is
nil, OVERRIDES will be installed locally in the current buffer. This
later installation should be done in MODE hook."
(declare (obsolete define-mode-local-override "29.1"))
- (mode-local-bind
- ;; Add the semantic- prefix to OVERLOAD short names.
- (mapcar
- (lambda (e)
- (let ((name (symbol-name (car e))))
- (if (string-match "^semantic-" name)
- e
- (cons (intern (format "semantic-%s" name)) (cdr e)))))
- overrides)
- (list 'constant-flag (not transient)
- 'override-flag t)))
+ (with-suppressed-warnings ((wrong-args mode-local-bind))
+ (mode-local-bind
+ ;; Add the semantic- prefix to OVERLOAD short names.
+ (mapcar
+ (lambda (e)
+ (let ((name (symbol-name (car e))))
+ (if (string-match "^semantic-" name)
+ e
+ (cons (intern (format "semantic-%s" name)) (cdr e)))))
+ overrides)
+ (list 'constant-flag (not transient)
+ 'override-flag t))))
;;; User Interrupt handling
;;