diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 00:50:35 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 00:50:35 +0200 |
commit | 88a08db927629032d6d4c662e00f0dce2c112ce4 (patch) | |
tree | a280d1c66c221d823fc9c08697037fcd97d68db9 /src/ast.c | |
parent | 2cabcc44858627f0951d9b702baf8120be7c5cf3 (diff) |
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 <johnny@johnnyrichard.com>
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ #include <stdlib.h> 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) { |