summaryrefslogtreecommitdiff
path: root/src/vector.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/vector.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/vector.c')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index 85368f6..704cbc4 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -22,7 +22,7 @@
#include <string.h>
vector_t *
-vector_new()
+vector_new(void)
{
vector_t *vector = (vector_t *)malloc(sizeof(vector_t));