From f7e5bc29caafba09766ec17853f6c6561d96434f Mon Sep 17 00:00:00 2001 From: Robert Cochran Date: Sat, 6 Jan 2018 13:19:55 -0800 Subject: [PATCH] Make byte-compile-error-on-warn a safe variable for file compilation This allows individual files to easily specify whether or not byte compilation should error on encountering warnings, ala -Werror from GCC. * lisp/emacs-lisp/bytecomp.el (byte-compile-error-on-warn): Mark as a safe local variable. --- lisp/emacs-lisp/bytecomp.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 2f5f9f8c05..a481b41aa5 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -295,6 +295,7 @@ byte-compile-error-on-warn "If true, the byte-compiler reports warnings with `error'." :group 'bytecomp :type 'boolean) +;;;###autoload(put 'byte-compile-error-on-warn 'safe-local-variable 'booleanp) (defconst byte-compile-warning-types '(redefine callargs free-vars unresolved -- 2.14.3