From 15e3bc7fd2e0dbab4f97f1bfe847477e15b3c90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Linse?= Date: Sun, 22 Sep 2019 11:49:44 +0200 Subject: [PATCH] Fix some compiler warnings regarding function prototypes --- lib/include/tree_sitter/api.h | 2 +- lib/src/query.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/include/tree_sitter/api.h b/lib/include/tree_sitter/api.h index f04370e4..c1a97134 100644 --- a/lib/include/tree_sitter/api.h +++ b/lib/include/tree_sitter/api.h @@ -738,7 +738,7 @@ const char *ts_query_string_value_for_id( * You can then start executing another query on another node by calling * `ts_query_cursor_exec` again. */ -TSQueryCursor *ts_query_cursor_new(); +TSQueryCursor *ts_query_cursor_new(void); /** * Delete a query cursor, freeing all of the memory that it used. diff --git a/lib/src/query.c b/lib/src/query.c index 015bd133..19d6adbc 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -3,6 +3,7 @@ #include "./array.h" #include "./bits.h" #include "./point.h" +#include "./tree_cursor.h" #include "utf8proc.h" #include