From 56793bf41c2e828e9721ca8dc504a8bda9f9cc7a Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sat, 23 Nov 2024 23:40:17 +0800 Subject: [PATCH 1/2] ci: Treat compile warnings as errors --- Eask | 1 + 1 file changed, 1 insertion(+) diff --git a/Eask b/Eask index 1af2bc84a5..12da792765 100644 --- a/Eask +++ b/Eask @@ -51,4 +51,5 @@ (setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 +(setq byte-compile-error-on-warn t) (setq byte-compile-docstring-max-column 1000) From a976c8223e258b77356af76a5a655879eeaadf06 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sat, 23 Nov 2024 23:44:25 +0800 Subject: [PATCH 2/2] ci: Limit to compile commadn --- Eask | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Eask b/Eask index 12da792765..4e06d8593f 100644 --- a/Eask +++ b/Eask @@ -51,5 +51,7 @@ (setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 -(setq byte-compile-error-on-warn t) -(setq byte-compile-docstring-max-column 1000) +(add-hook 'eask-before-compile-hook + (lambda () + (setq byte-compile-error-on-warn t) + (setq byte-compile-docstring-max-column 1000)))