summaryrefslogtreecommitdiff
path: root/src/scope.c
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-04-30 00:50:35 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2023-04-30 00:50:35 +0200
commit88a08db927629032d6d4c662e00f0dce2c112ce4 (patch)
treea280d1c66c221d823fc9c08697037fcd97d68db9 /src/scope.c
parent2cabcc44858627f0951d9b702baf8120be7c5cf3 (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/scope.c')
-rw-r--r--src/scope.c4
1 files changed, 2 insertions, 2 deletions
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 <string.h>
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));