[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/tuareg 6989263 4/5: Run CI byte-compilation with warnings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/tuareg 6989263 4/5: Run CI byte-compilation with warnings as errors |
Date: |
Wed, 25 Aug 2021 15:57:41 -0400 (EDT) |
branch: elpa/tuareg
commit 6989263fdf70ebff00118ad2854408e392aba233
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Christophe Troestler <christophe.Troestler@umons.ac.be>
Run CI byte-compilation with warnings as errors
If this causes excessive trouble with old Emacs versions, it could be
restricted to specific versions only.
---
.github/workflows/test.yml | 2 +-
Makefile | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5206061..93ed577 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v2
- name: Byte-compile
- run: make elc
+ run: make elc-werror
- name: Test
run: make check
diff --git a/Makefile b/Makefile
index e31862c..27c12ef 100644
--- a/Makefile
+++ b/Makefile
@@ -49,8 +49,11 @@ INSTALL_CP = $(CP)
all elc : $(ELC) tuareg-site-file.el
+elc-werror: WERROR=--eval '(setq byte-compile-error-on-warn t)'
+elc-werror: elc
+
%.elc : %.el
- $(EMACS) --batch -L . --no-init-file -f batch-byte-compile $<
+ $(EMACS) --batch -L . --no-init-file $(WERROR) -f batch-byte-compile $<
@echo "Files byte-compiled using $(EMACS)"
install : $(INSTALL_FILES)