test/test_allocator.cpp

changeset 522
b91c50d023f4
parent 514
6f9d97a53d67
     1.1 --- a/test/test_allocator.cpp	Sat Apr 16 22:12:47 2022 +0200
     1.2 +++ b/test/test_allocator.cpp	Mon Apr 18 14:35:41 2022 +0200
     1.3 @@ -76,7 +76,11 @@
     1.4  TEST(Allocator, FailingReallocate) {
     1.5      // Mock an allocator that always returns nullptr on realloc
     1.6      cx_allocator_class mock_cl;
     1.7 -    mock_cl.realloc = [](void* p, void* d, size_t n) -> void* { return nullptr; };
     1.8 +    mock_cl.realloc = [](
     1.9 +            [[maybe_unused]]void *p,
    1.10 +            [[maybe_unused]]void *d,
    1.11 +            [[maybe_unused]]size_t n
    1.12 +    ) -> void * { return nullptr; };
    1.13      cx_allocator_s mock{&mock_cl, nullptr};
    1.14  
    1.15      void *test = calloc(8, 1);

mercurial