diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 00:43:25 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 00:43:25 +0200 |
commit | 2cabcc44858627f0951d9b702baf8120be7c5cf3 (patch) | |
tree | dd634dd1813c0b5b40a9aaf2ef420883703d5fc2 /src/vector.c | |
parent | 9f034b4ebfe15844ea610ec2dd2fca1a9f7ce338 (diff) |
style: Add -Wmissing-declarations to CC CFLAGS
The refactoring also replace a if statement by switch statement.
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/vector.c')
-rw-r--r-- | src/vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c index 1d018ef..85368f6 100644 --- a/src/vector.c +++ b/src/vector.c @@ -44,7 +44,7 @@ vector_new() return vector; } -void +static void vector_resize(vector_t *vector) { vector->capacity = vector->capacity * 2; |