aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 05:07:04 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 05:07:04 -0500
commit84949b4b1d767b10e400bdb126d6091f0684cd65 (patch)
tree89d1ab1f6d5899e345cb692f5382380389336c0e
parentf320da4632d014cfd576ce9ba7e65185d14f530a (diff)
downloadchime-84949b4b1d767b10e400bdb126d6091f0684cd65.tar.gz
chime-84949b4b1d767b10e400bdb126d6091f0684cd65.zip
build: fail compile on byte-compile warnings
I set `byte-compile-error-on-warn` to t in the root `compile' target. The warning backlog is clear, so any new warning should break the build instead of slipping by silently.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0f952b2..ca224e7 100644
--- a/Makefile
+++ b/Makefile
@@ -90,13 +90,13 @@ setup:
# Byte-compile chime.el — surfaces free-variable / unused-let / suspicious-call
# warnings that checkdoc and elisp-lint don't catch. byte-compile-error-on-warn
-# stays nil for now to match `make build' permissiveness; tighten once the
-# warning backlog is clear.
+# is t so any warning fails the build; the backlog is clear and we want to keep
+# it that way.
compile:
@echo "[i] Byte-compiling $(SOURCE_FILE)..."
@$(EMACS_BATCH) \
--eval "(progn \
- (setq byte-compile-error-on-warn nil) \
+ (setq byte-compile-error-on-warn t) \
(batch-byte-compile))" $(SOURCE_FILE)
@echo "[✓] Compilation complete"