diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-29 17:15:28 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-10-13 16:45:23 -0700 |
commit | 0fca6e570802d18d0f4ef073ad8d90ad5522b4f0 (patch) | |
tree | ab25951ed44b6bdaf321fb50b1d2b873ada95c44 /assoc.c | |
parent | 1ba54b05a4a23d1acd85b5c14384ac8cbaed8478 (diff) | |
download | memcached-0fca6e570802d18d0f4ef073ad8d90ad5522b4f0.tar.gz |
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 <raj.khem@gmail.com>
Diffstat (limited to 'assoc.c')
-rw-r--r-- | assoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |