From 212e30f6789cd080a9428958872ffcaab6bf248a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 28 Apr 2023 12:01:19 -0400 Subject: [PATCH] ; Fix byte-compilation warnings in c-ts-mode.el * lisp/progmodes/c-ts-mode.el (treesit-parser-set-included-ranges) (treesit-query-compile): Declare treesit.c functions. (treesit-load-name-override-list): Defvar it. --- lisp/progmodes/c-ts-mode.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 7a1ee66cb77..113f3b6ee84 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -80,6 +80,8 @@ (declare-function treesit-node-prev-sibling "treesit.c") (declare-function treesit-node-first-child-for-pos "treesit.c") (declare-function treesit-node-next-sibling "treesit.c") +(declare-function treesit-parser-set-included-ranges "treesit.c") +(declare-function treesit-query-compile "treesit.c") ;;; Custom variables @@ -1130,6 +1132,8 @@ BEG and END are described in `treesit-range-rules'." ( assignment constant escape-sequence label literal) ( bracket delimiter error function operator property variable)))) +(defvar treesit-load-name-override-list) + ;;;###autoload (define-derived-mode c-ts-mode c-ts-base-mode "C" "Major mode for editing C, powered by tree-sitter. -- 2.39.5