test/test_allocator.cpp

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

mercurial