From f1ef4787b44d0460c96a38bed9f13c4d1f62471a Mon Sep 17 00:00:00 2001 From: Tim McGilchrist Date: Fri, 27 Oct 2023 17:15:40 +1100 Subject: [PATCH] Fix for get_comments prototype deprecation passing arguments to 'get_comments' without a prototype is deprecated in all versions of C and is not supported in C2x --- c/src/ast_builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/ast_builder.c b/c/src/ast_builder.c index 5e60d2512..4fa0338de 100644 --- a/c/src/ast_builder.c +++ b/c/src/ast_builder.c @@ -64,7 +64,7 @@ static wchar_t* create_multi_line_text_from_tokens(int text_length, int line_cou static const wchar_t* get_description(AstNode* ast_node); -static const Comments* get_comments(); +static const Comments* get_comments(AstBuilder* ast_builder); static void ensure_cell_count(ErrorList* errors, const TableRows* rows, const TableRow* header, AstNode* ast_node);