From 88a08db927629032d6d4c662e00f0dce2c112ce4 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sun, 30 Apr 2023 00:50:35 +0200 Subject: style: Add void to function without arguments After run `make CC=clang` we found the following problems: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] Signed-off-by: Johnny Richard --- src/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index 7bad020..d3e9a28 100644 --- a/src/ast.c +++ b/src/ast.c @@ -20,7 +20,7 @@ #include ast_node_t * -ast_node_new() +ast_node_new(void) { ast_node_t *node = (ast_node_t *)malloc(sizeof(ast_node_t)); if (node == NULL) { -- cgit v1.2.3