From 0fca6e570802d18d0f4ef073ad8d90ad5522b4f0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 29 Aug 2022 17:15:28 -0700 Subject: Fix function protypes for clang errors clang-15+ has started diagnosing them as errors thread.c:925:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] | void STATS_UNLOCK() { | ^ | void Signed-off-by: Khem Raj --- slabs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slabs.c') diff --git a/slabs.c b/slabs.c index 3c78d8a..0dadd35 100644 --- a/slabs.c +++ b/slabs.c @@ -638,7 +638,7 @@ static void *memory_allocate(size_t size) { } /* Must only be used if all pages are item_size_max */ -static void memory_release() { +static void memory_release(void) { void *p = NULL; if (mem_base != NULL) return; -- cgit v1.2.1