summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2018-04-18 15:56:15 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2018-04-18 15:56:15 -0400
commit53c29c4d3c636c7f02b563b3c683b13ae5863bcf (patch)
treeac476e5eba3eb42ac1ad33f8b944ed02b6d89abb /lisp/emacs-lisp
parent403f3d2c85b98a15609b3e52411c175b5294f940 (diff)
downloademacs-53c29c4d3c636c7f02b563b3c683b13ae5863bcf.tar.gz
* lisp/emacs-lisp/gv.el (gv-define-setter): Silence compiler warning
Code placed in the `gv-expander` property will presumably only be used when gv is loaded (bug#14529).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/gv.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el
index 01634d84ca5..6bfc32c8356 100644
--- a/lisp/emacs-lisp/gv.el
+++ b/lisp/emacs-lisp/gv.el
@@ -217,6 +217,8 @@ to be pure and copyable. Example use:
(declare (indent 2) (debug (&define name sexp body)))
`(gv-define-expander ,name
(lambda (do &rest args)
+ (declare-function
+ gv--defsetter "gv" (name setter do args &optional vars))
(gv--defsetter ',name (lambda ,arglist ,@body) do args))))
;;;###autoload