emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 907336cd0b 337/500: Silence byte compiler warning


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 907336cd0b 337/500: Silence byte compiler warnings in nix-shell
Date: Sat, 29 Jan 2022 08:27:19 -0500 (EST)

branch: elpa/nix-mode
commit 907336cd0b7757e9e450be684fc88d96fa45ac82
Author: Alex Branham <alex.branham@gmail.com>
Commit: Alex Branham <alex.branham@gmail.com>

    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))
       )))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]