branch: elpa/nix-mode commit e8201579940607453782054e348a43f3ba24d8e8 Merge: 2f4bd0f09c 907336cd0b Author: Matthew Bauer <mjbaue...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #82 from jabranham/comp-warns Silence byte compiler warnings in nix-shell --- nix-shell.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix-shell.el b/nix-shell.el index 2560923a7e..d1754e7c4f 100644 --- a/nix-shell.el +++ b/nix-shell.el @@ -21,6 +21,13 @@ (require 'nix-instantiate) (require 'nix-store) +;; Tell the byte compiler these are dynamically bound +(defvar woman-manpath) +(defvar Man-header-file-path) +(defvar irony-additional-clang-options) +(defvar eshell-path-env) +(defvar ffap-c-path) + (defgroup nix-shell nil "All nix-shell options." :group 'nix) @@ -161,7 +168,7 @@ The DRV file to use." (add-to-list 'irony-additional-clang-options (format "-I%s" include)))) - (when flycheck-mode + (when (bound-and-true-p flycheck-mode) (flycheck-buffer)) )))