branch: externals/ellama
commit dba4c1025c2e4374c2a45a3f4b7e6e85d991b5a4
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>
Fail Elisp checks on compiler warnings
Configure byte and native compilation checks to treat warnings as errors.
This makes make check-elisp return non-zero on compiler warnings so Ellama and
git hooks block the same way they do for failing tests.
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index ed8a519a35..d3467c30cc 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ build:
--eval "(package-initialize)" \
--eval "(require 'cl-lib)" \
--eval "(setq load-prefer-newer t)" \
+ --eval "(setq byte-compile-error-on-warn t)" \
--eval "(setq load-path (cl-remove-if (lambda (dir)
(string-match-p \"/elpa/org-[^/]+/?$$\" dir)) (cons (expand-file-name \".\")
load-path)))" \
-f batch-byte-compile ellama*.el
@@ -76,7 +77,7 @@ test-srt-integration-linux: docker-build-srt-parity
make test-srt-integration
check-compile-warnings:
- emacs --batch --eval "(package-initialize)" --eval "(setq
load-prefer-newer t)" --eval "(setq native-comp-eln-load-path (list
default-directory))" -L . -f batch-native-compile $(ELLAMA_COMPILE_ORDER)
+ emacs --batch --eval "(package-initialize)" --eval "(setq
load-prefer-newer t)" --eval "(setq byte-compile-error-on-warn t)" --eval
"(setq native-comp-eln-load-path (list default-directory))" -L . -f
batch-native-compile $(ELLAMA_COMPILE_ORDER)
checkdocs:
emacs -Q -batch \