diff -r e8f354a25ac8 -r 68754c7de906 tests/test_allocator.c --- a/tests/test_allocator.c Thu Nov 07 20:22:56 2024 +0100 +++ b/tests/test_allocator.c Thu Nov 07 22:46:58 2024 +0100 @@ -98,7 +98,7 @@ } CX_TEST(test_allocator_default_free) { - void *test = malloc(16); + void *test = cxMalloc(cxDefaultAllocator, 16); CX_TEST_DO { // we cannot assert sth. but valgrind will detect an error cxFree(cxDefaultAllocator, test); @@ -181,9 +181,9 @@ } static void *test_allocator_mock_failing_realloc( - __attribute__((__unused__))void *p, - __attribute__((__unused__))void *d, - __attribute__((__unused__))size_t n + cx_attr_unused void *p, + cx_attr_unused void *d, + cx_attr_unused size_t n ) { return NULL; }