]> git.eshelyaron.com Git - emacs.git/commitdiff
* automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare.
authorGlenn Morris <rgm@gnu.org>
Tue, 9 Jul 2013 07:43:12 +0000 (00:43 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 9 Jul 2013 07:43:12 +0000 (00:43 -0700)
(inotify-file-watch-simple): Silence compiler.

test/ChangeLog
test/automated/inotify-test.el

index cd6b402ca23b7a68f1221fb45ab7ab430211fb09..304afeac6e4167744d2930fefe1e42469f7d9b20 100644 (file)
@@ -1,5 +1,9 @@
 2013-07-09  Glenn Morris  <rgm@gnu.org>
 
+       * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch):
+       Declare.
+       (inotify-file-watch-simple): Silence compiler.
+
        * automated/python-tests.el (python-indent-block-enders):
        Make it actually test something.
 
index 175f262b28230d091c5be13d0c9243b2c0aeb61c..b4d20cf4fb17ffab04785df51ba1beb738160a91 100644 (file)
@@ -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