From 260dabfbf0ae8d0cf55270910a457734fdc8ddfc Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 10 Dec 2025 07:58:23 +0100 Subject: [PATCH] latest --- cig.h | 2 +- forever_allocator.c | 2 +- test_dynamic_array.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cig.h b/cig.h index 5ffc6b7..5df39ac 100644 --- a/cig.h +++ b/cig.h @@ -39,7 +39,7 @@ void allocator_reset(allocator_t this); #define allocator_resize(this, old_ptr, bytes) allocator_resize_func(this, old_ptr, bytes, __FILE__, __LINE__) // forever_allocator /////////////////////////////////////////////////////////// -allocator_t forever_allocator(); +allocator_t forever_allocator(void); // buffer_allocator //////////////////////////////////////////////////////////// typedef struct buffer_allocator { diff --git a/forever_allocator.c b/forever_allocator.c index 51043f9..0ab496e 100644 --- a/forever_allocator.c +++ b/forever_allocator.c @@ -18,7 +18,7 @@ static const allocator_vtbl_t forever_vtbl = { .reset = forever_no_op, }; -allocator_t forever_allocator() { +allocator_t forever_allocator(void) { return (allocator_t) { .this=NULL, .vtbl=&forever_vtbl, diff --git a/test_dynamic_array.c b/test_dynamic_array.c index 8b470f5..368a399 100644 --- a/test_dynamic_array.c +++ b/test_dynamic_array.c @@ -60,7 +60,7 @@ Test(dynamic_arrays, contains) { for ( size_t y = 0; y < 1000; y++ ) { for ( size_t i = 0; i < 100; i++ ) { - if (!arr_contains(numbers, int, i)) { + if (!arr_contains(numbers, &(int){i})) { arr_append(numbers, i); } }