From 648af99afa490bcccbba64dc01af2b27002e96e5 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 9 Jul 2022 17:20:26 +0300 Subject: [PATCH] Fix EVBASE_ACQUIRE_LOCK/EVBASE_RELEASE_LOCK for EVENT__DISABLE_THREAD_SUPPORT --- evthread-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evthread-internal.h b/evthread-internal.h index 83e409f0..2d926856 100644 --- a/evthread-internal.h +++ b/evthread-internal.h @@ -316,8 +316,8 @@ EVLOCK_TRY_LOCK_(void *lock) #define EVBASE_IN_THREAD(base) 1 #define EVBASE_NEED_NOTIFY(base) 0 -#define EVBASE_ACQUIRE_LOCK(base, lock) EVUTIL_NIL_STMT_ -#define EVBASE_RELEASE_LOCK(base, lock) EVUTIL_NIL_STMT_ +#define EVBASE_ACQUIRE_LOCK(base, lock) (void)(base) +#define EVBASE_RELEASE_LOCK(base, lock) (void)(base) #define EVLOCK_ASSERT_LOCKED(lock) EVUTIL_NIL_STMT_ #define EVLOCK_TRY_LOCK_(lock) 1