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 --- assoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assoc.c') diff --git a/assoc.c b/assoc.c index bc68695..01063a9 100644 --- a/assoc.c +++ b/assoc.c @@ -261,7 +261,7 @@ static void *assoc_maintenance_thread(void *arg) { static pthread_t maintenance_tid; -int start_assoc_maintenance_thread() { +int start_assoc_maintenance_thread(void) { int ret; char *env = getenv("MEMCACHED_HASH_BULK_MOVE"); if (env != NULL) { @@ -279,7 +279,7 @@ int start_assoc_maintenance_thread() { return 0; } -void stop_assoc_maintenance_thread() { +void stop_assoc_maintenance_thread(void) { mutex_lock(&maintenance_lock); do_run_maintenance_thread = 0; pthread_cond_signal(&maintenance_cond); -- cgit v1.2.1