From: Eli Zaretskii Date: Wed, 16 Aug 2023 13:10:55 +0000 (+0300) Subject: ; Fix byte-compiler warnings in comp.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfe68f2a420e4d85ba2d1723bbdbf7f4bf1d71a6;p=emacs.git ; Fix byte-compiler warnings in comp.el * lisp/emacs-lisp/comp.el: Declare functions and variables defined in comp.c, to avoid byte-compiler warnings. (Bug#65250) --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index bb85ef2bc06..ad0077dadda 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -39,6 +39,23 @@ (require 'warnings) (require 'comp-cstr) +;; These variables and functions are defined in comp.c +(defvar native-comp-enable-subr-trampolines) +(defvar comp-installed-trampolines-h) +(defvar comp-subr-arities-h) +(defvar native-comp-eln-load-path) +(defvar comp-native-version-dir) +(defvar comp-deferred-pending-h) +(defvar comp--no-native-compile) + +(declare-function comp-el-to-eln-rel-filename "comp.c") +(declare-function native-elisp-load "comp.c") +(declare-function comp--release-ctxt "comp.c") +(declare-function comp--init-ctxt "comp.c") +(declare-function comp--compile-ctxt-to-file "comp.c") +(declare-function comp-el-to-eln-filename "comp.c") +(declare-function comp--install-trampoline "comp.c") + (defgroup comp nil "Emacs Lisp native compiler." :group 'lisp)