summaryrefslogtreecommitdiff
path: root/lisp/Makefile.in
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-06-19 13:37:10 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-19 13:37:10 +0200
commit93b018c664e1f95b41d0239c651a79a237edfc38 (patch)
tree6c9ef739ac783eeaeca5b766c42d32b2c17077bd /lisp/Makefile.in
parent76f3878e287542ffaa40126528fc0cb2dc6a2a3d (diff)
downloademacs-93b018c664e1f95b41d0239c651a79a237edfc38.tar.gz
Add mechanism for gradually phasing in new byte compilation warnings
* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Enable all byte compilation warnings. * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Add docstrings-non-ascii-quotes and document new semantics for `all' and t. (byte-compile--emacs-build-warning-types): New constant. (byte-compile-warning-enabled-p): Implement the new semantics. (byte-compile-docstring-style-warn): Reinstate the Unicode quote warning.
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r--lisp/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 8728467977a..9516f2fc364 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -67,7 +67,8 @@ AUTOGENEL = ${loaddefs} ${srcdir}/cus-load.el ${srcdir}/finder-inf.el \
# Set load-prefer-newer for the benefit of the non-bootstrappers.
BYTE_COMPILE_FLAGS = \
- --eval '(setq load-prefer-newer t)' $(BYTE_COMPILE_EXTRA_FLAGS)
+ --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" \
+ $(BYTE_COMPILE_EXTRA_FLAGS)
# ... but we must prefer .elc files for those in the early bootstrap.
# A larger `max-specpdl-size' is needed for emacs-lisp/comp.el.
compile-first: BYTE_COMPILE_FLAGS = \