From b0b8c6334d0e70fc28ad7e560c0c771c0a027d54 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Wed, 11 Nov 2020 19:43:53 -0600 Subject: [PATCH] Fix: (helm-org-ql.el) Compiler warnings --- helm-org-ql.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/helm-org-ql.el b/helm-org-ql.el index 059a965..e95bc5f 100644 --- a/helm-org-ql.el +++ b/helm-org-ql.el @@ -30,12 +30,9 @@ (eval-and-compile - (eval-when-compile - ;; Require these when compiling, but not necessarily on load. - (require 'org) - - (require 'org-ql) - (require 'org-ql-search)) + (require 'org) + (require 'org-ql) + (require 'org-ql-search) ;;;; Compatibility @@ -77,8 +74,10 @@ Based on `helm-map'.") :action (list (cons "Show view" #'org-ql-view))) "Helm source for `org-ql-views'.") - (defvar-local helm-org-ql-buffers-files nil - "Used for `helm-org-ql-save'.") + (with-no-warnings + ;; Silence compiler warning: "‘make-variable-buffer-local’ not called at toplevel" + (defvar-local helm-org-ql-buffers-files nil + "Used for `helm-org-ql-save'.")) ;;;; Customization