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/scope.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scope.c') diff --git a/src/scope.c b/src/scope.c index de1295e..5b696ad 100644 --- a/src/scope.c +++ b/src/scope.c @@ -20,7 +20,7 @@ #include static scope_item_t * -scope_item_new() +scope_item_new(void) { scope_item_t *item = malloc(sizeof(scope_item_t)); if (item == NULL) { @@ -37,7 +37,7 @@ scope_item_destroy(scope_item_t *item) } scope_t * -scope_new() +scope_new(void) { scope_t *scope = malloc(sizeof(scope_t)); -- cgit v1.2.3