From 3db3e167ede6a9bd035f9145b5cb817954e150dd Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 13 Oct 2018 16:49:06 -0400 Subject: [PATCH] remove usage of ATOMIC_VAR_INIT This was never truly required in practice and has been officially obsoleted in C17. --- malloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/malloc.c b/malloc.c index 55eceaf..eff660a 100644 --- a/malloc.c +++ b/malloc.c @@ -44,9 +44,7 @@ static union { atomic_bool initialized; }; char padding[PAGE_SIZE]; -} ro __attribute__((aligned(PAGE_SIZE))) = { - .initialized = ATOMIC_VAR_INIT(false) -}; +} ro __attribute__((aligned(PAGE_SIZE))); struct slab_metadata { u64 bitmap[4];