]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix byte-compiler warnings in comp.el
authorEli Zaretskii <eliz@gnu.org>
Wed, 16 Aug 2023 13:10:55 +0000 (16:10 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 16 Aug 2023 13:10:55 +0000 (16:10 +0300)
* lisp/emacs-lisp/comp.el: Declare functions and variables defined
in comp.c, to avoid byte-compiler warnings.  (Bug#65250)

lisp/emacs-lisp/comp.el

index bb85ef2bc06a080a3db86170eb40910017acff56..ad0077dadda9f59afa1d19bf6a552bb53ac53f6c 100644 (file)
 (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)