summaryrefslogtreecommitdiff
path: root/test/automated/inotify-test.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-07-09 00:43:12 -0700
committerGlenn Morris <rgm@gnu.org>2013-07-09 00:43:12 -0700
commit0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785 (patch)
treecf8d30300a6e91f398c9bdc550773128c0482874 /test/automated/inotify-test.el
parenta87b74fe644d54cabc67d01e962a2bfcbaaa495a (diff)
downloademacs-0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785.tar.gz
* automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare.
(inotify-file-watch-simple): Silence compiler.
Diffstat (limited to 'test/automated/inotify-test.el')
-rw-r--r--test/automated/inotify-test.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/automated/inotify-test.el b/test/automated/inotify-test.el
index 175f262b282..b4d20cf4fb1 100644
--- a/test/automated/inotify-test.el
+++ b/test/automated/inotify-test.el
@@ -25,6 +25,9 @@
(require 'ert)
+(declare-function inotify-add-watch "inotify.c" (file-name aspect callback))
+(declare-function inotify-rm-watch "inotify.c" (watch-descriptor))
+
(when (featurep 'inotify)
;; (ert-deftest filewatch-file-watch-aspects-check ()
@@ -45,7 +48,7 @@
(let ((temp-file (make-temp-file "inotify-simple"))
(events 0))
(let ((wd
- (inotify-add-watch temp-file t (lambda (ev)
+ (inotify-add-watch temp-file t (lambda (_ev)
(setq events (1+ events))))))
(unwind-protect
(progn