From: Glenn Morris Date: Tue, 9 Jul 2013 07:43:12 +0000 (-0700) Subject: * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1870 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785;p=emacs.git * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare. (inotify-file-watch-simple): Silence compiler. --- diff --git a/test/ChangeLog b/test/ChangeLog index cd6b402ca23..304afeac6e4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,5 +1,9 @@ 2013-07-09 Glenn Morris + * 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. 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