From 801d494a7a32990a5317538b141b363ccbf4ede8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 15 Jun 2024 20:03:39 +0300 Subject: [PATCH] Avoid byte-compilation warnings in php-ts-mode * lisp/progmodes/php-ts-mode.el (treesit-search-forward) (treesit-node-prev-sibling, treesit-node-first-child-for-pos): Declare. (cherry picked from commit 9b2e1b5e16c233cf5ea039e17175580793a4e5ef) --- lisp/progmodes/php-ts-mode.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/progmodes/php-ts-mode.el b/lisp/progmodes/php-ts-mode.el index fc029a17120..f6b805f7e8e 100644 --- a/lisp/progmodes/php-ts-mode.el +++ b/lisp/progmodes/php-ts-mode.el @@ -76,6 +76,9 @@ (declare-function treesit-parser-included-ranges "treesit.c") (declare-function treesit-parser-list "treesit.c") (declare-function treesit-parser-language "treesit.c") +(declare-function treesit-search-forward "treesit.c") +(declare-function treesit-node-prev-sibling "treesit.c") +(declare-function treesit-node-first-child-for-pos "treesit.c") ;;; Install treesitter language parsers (defvar php-ts-mode--language-source-alist -- 2.39.2