From d0029a15273e526925a764033e9b7f18f96a7ce5 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 14 Jun 2023 11:31:39 -0700 Subject: [PATCH] Avoid unused value warning from array_pop --- lib/src/tree_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/tree_cursor.c b/lib/src/tree_cursor.c index 8e6d9414..5383c094 100644 --- a/lib/src/tree_cursor.c +++ b/lib/src/tree_cursor.c @@ -291,7 +291,7 @@ void ts_tree_cursor_goto_descendant( } else if (self->stack.size <= 1) { return; } else { - array_pop(&self->stack); + self->stack.size--; } }