emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat 265ecb9aac 3/4: Treat byte compilation warnings


From: ELPA Syncer
Subject: [elpa] externals/compat 265ecb9aac 3/4: Treat byte compilation warnings as errors
Date: Fri, 6 Jan 2023 09:57:27 -0500 (EST)

branch: externals/compat
commit 265ecb9aacdfcfb30ae712a6d8c0dad6833a1cda
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Treat byte compilation warnings as errors
    
    Except on the snapshot version since new warnings may get introduced
    there. As soon as a new Emacs version is released, it will also
    checked for warnings.
---
 Makefile | 5 ++++-
 NEWS.org | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e205f12393..df59a40629 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,10 @@ clean:
 $(BYTEC): compat-macs.el
 
 .el.elc:
-       $(EMACS) -Q --batch -L . -f batch-byte-compile $<
+       @echo "Compiling $<"
+       @$(EMACS) -Q --batch -L . \
+               --eval '(setq byte-compile-error-on-warn (< emacs-major-version 
29))' \
+               -f batch-byte-compile $<
 
 compat.info: compat.texi
        $(MAKEINFO) $<
diff --git a/NEWS.org b/NEWS.org
index 861c14b5e9..42a6d60138 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -10,6 +10,8 @@
 - Compat uses runtime checks (boundp, fboundp) to ensure that existing
   definitions are never overridden, when Compat is loaded on a newer Emacs than
   it was compiled on.
+- Compat compiles without byte compilation warnings on all supported Emacs
+  versions. Warnings are treated as errors in the test suite.
 
 * Release of "Compat" Version 29.1.0.1
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]