From 7d75acc62ad7efec815b31779f8380128dfb5cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 16 Jun 2022 19:22:46 +0200 Subject: [PATCH] use strict prototype MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit h_malloc.c:83:21: error: function declaration isn’t a prototype [-Werror=strict-prototypes] 83 | static inline void *get_slab_region_end() { | ^~~~~~~~~~~~~~~~~~~ --- h_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index a610683..486e6a5 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -80,7 +80,7 @@ static union { char padding[PAGE_SIZE]; } ro __attribute__((aligned(PAGE_SIZE))); -static inline void *get_slab_region_end() { +static inline void *get_slab_region_end(void) { return atomic_load_explicit(&ro.slab_region_end, memory_order_acquire); }