aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree_sitter/alloc.h1
-rw-r--r--src/tree_sitter/parser.c4
-rw-r--r--src/tree_sitter/query.c2
-rw-r--r--src/tree_sitter/stack.c2
-rw-r--r--src/tree_sitter/treesitter_commit_hash.txt2
5 files changed, 8 insertions, 3 deletions
diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h
index 2229995bd1..d3c6b5eca8 100644
--- a/src/tree_sitter/alloc.h
+++ b/src/tree_sitter/alloc.h
@@ -51,6 +51,7 @@ static inline void ts_free(void *buffer) {
#include <stdlib.h>
static inline bool ts_toggle_allocation_recording(bool value) {
+ (void)value;
return false;
}
diff --git a/src/tree_sitter/parser.c b/src/tree_sitter/parser.c
index 19add152f1..dd222cd3c4 100644
--- a/src/tree_sitter/parser.c
+++ b/src/tree_sitter/parser.c
@@ -101,9 +101,10 @@ typedef struct {
static const char *ts_string_input_read(
void *_self,
uint32_t byte,
- TSPoint _,
+ TSPoint pt,
uint32_t *length
) {
+ (void)pt;
TSStringInput *self = (TSStringInput *)_self;
if (byte >= self->length) {
*length = 0;
@@ -210,6 +211,7 @@ static ErrorComparison ts_parser__compare_versions(
ErrorStatus a,
ErrorStatus b
) {
+ (void)self;
if (!a.is_in_error && b.is_in_error) {
if (a.cost < b.cost) {
return ErrorComparisonTakeLeft;
diff --git a/src/tree_sitter/query.c b/src/tree_sitter/query.c
index 1ffc5ad6e2..59902dee3b 100644
--- a/src/tree_sitter/query.c
+++ b/src/tree_sitter/query.c
@@ -1267,7 +1267,7 @@ void ts_query_disable_pattern(
* QueryCursor
***************/
-TSQueryCursor *ts_query_cursor_new() {
+TSQueryCursor *ts_query_cursor_new(void) {
TSQueryCursor *self = ts_malloc(sizeof(TSQueryCursor));
*self = (TSQueryCursor) {
.ascending = false,
diff --git a/src/tree_sitter/stack.c b/src/tree_sitter/stack.c
index ade1577566..6ceee2577f 100644
--- a/src/tree_sitter/stack.c
+++ b/src/tree_sitter/stack.c
@@ -480,6 +480,7 @@ StackSliceArray ts_stack_pop_count(Stack *self, StackVersion version, uint32_t c
}
inline StackAction pop_pending_callback(void *payload, const StackIterator *iterator) {
+ (void)payload;
if (iterator->subtree_count >= 1) {
if (iterator->is_pending) {
return StackActionPop | StackActionStop;
@@ -532,6 +533,7 @@ SubtreeArray ts_stack_pop_error(Stack *self, StackVersion version) {
}
inline StackAction pop_all_callback(void *payload, const StackIterator *iterator) {
+ (void)payload;
return iterator->node->link_count == 0 ? StackActionPop : StackActionNone;
}
diff --git a/src/tree_sitter/treesitter_commit_hash.txt b/src/tree_sitter/treesitter_commit_hash.txt
index 3053a9ca25..bd7fcfbe76 100644
--- a/src/tree_sitter/treesitter_commit_hash.txt
+++ b/src/tree_sitter/treesitter_commit_hash.txt
@@ -1 +1 @@
-9a82dcc666d06617cbab3061467075019fae0b0d
+81d533d2d1b580fdb507accabc91ceddffb5b6f0