From 0ff066e9e8f8d7787fd69241616188c1bfed2fb6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 Oct 2021 17:17:19 -0400 Subject: Compile but fail at runtime if aligned allocation is not supported --- src/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/allocator.c') diff --git a/src/allocator.c b/src/allocator.c index bedef47..2df0b90 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -65,7 +65,7 @@ zix_default_aligned_alloc(ZixAllocator* const allocator, const int ret = posix_memalign(&ptr, alignment, size); return ret ? NULL : ptr; #else -# error No aligned memory allocation available + return NULL; #endif } -- cgit v1.2.1