branch: master
commit 8306be11c84a23e0ab3bcdd36cab1e5c16df8fbe
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    Fix compilation warnings
    
    * Makefile: Don't load files before compilation.
    
    * ivy.el (swiper--cleanup):
    (swiper--add-overlays): Declare.
    
    Fixes #324
---
 Makefile |    2 +-
 ivy.el   |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b3857c9..5169643 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ test:
        $(emacs) -batch $(LOAD) -l ivy-test.el -f ert-run-tests-batch-and-exit
 
 compile:
-       $(emacs) -batch $(LOAD) --eval "(mapc #'byte-compile-file '(\"ivy.el\" 
\"swiper.el\" \"counsel.el\"))"
+       $(emacs) -batch --eval "(progn (add-to-list 'load-path 
default-directory) (mapc #'byte-compile-file '(\"ivy.el\" \"swiper.el\" 
\"counsel.el\")))"
 
 clean:
        rm -f *.elc
diff --git a/ivy.el b/ivy.el
index a0bbbd8..095482f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2423,6 +2423,9 @@ EVENT gives the mouse position."
       (goto-char pos)
       (ivy-occur-press))))
 
+(declare-function swiper--cleanup "swiper")
+(declare-function swiper--add-overlays "swiper")
+
 (defun ivy-occur-press ()
   "Execute action for the current candidate."
   (interactive)

Reply via email to