summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp-run.el
diff options
context:
space:
mode:
authorAndrea Corallo <acorallo@gnu.org>2023-10-25 23:50:39 +0200
committerAndrea Corallo <acorallo@gnu.org>2023-11-09 12:34:26 +0100
commit93cc43a23c90247644cb21bfdae60b36b1057de2 (patch)
tree7cce622ab587942e162b26251e7de4c7c0440b3a /lisp/emacs-lisp/comp-run.el
parent4bb186356734cce2d9c5f1d506deb0da1bb40770 (diff)
downloademacs-93cc43a23c90247644cb21bfdae60b36b1057de2.tar.gz
emacs-93cc43a23c90247644cb21bfdae60b36b1057de2.tar.bz2
emacs-93cc43a23c90247644cb21bfdae60b36b1057de2.zip
comp: don't require 'warnings' in comp-run
* lisp/emacs-lisp/comp-run.el (warnings): Don't require. (warning-suppress-types): Wave warning. * lisp/emacs-lisp/warnings.el (warning-suppress-types): Autoload it.
Diffstat (limited to 'lisp/emacs-lisp/comp-run.el')
-rw-r--r--lisp/emacs-lisp/comp-run.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp-run.el b/lisp/emacs-lisp/comp-run.el
index 9ea770135c1..b65c0997a3e 100644
--- a/lisp/emacs-lisp/comp-run.el
+++ b/lisp/emacs-lisp/comp-run.el
@@ -32,7 +32,6 @@
;;; Code:
(eval-when-compile (require 'cl-lib))
-(require 'warnings)
(defgroup comp-run nil
"Emacs Lisp native compiler runtime."
@@ -243,6 +242,8 @@ processes from `comp-async-compilations'"
(defvar comp-last-scanned-async-output nil)
(make-variable-buffer-local 'comp-last-scanned-async-output)
+;; From warnings.el
+(defvar warning-suppress-types)
(defun comp-accept-and-process-async-output (process)
"Accept PROCESS output and check for diagnostic messages."
(if native-comp-async-report-warnings-errors