Skip to content

Commit 0955071

Browse files
committed
Fix BEV_LOCK/BEV_UNLOCK macros for EVENT__DISABLE_THREAD_SUPPORT
1 parent 1915b56 commit 0955071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bufferevent-internal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ bufferevent_socket_set_conn_address_(struct bufferevent *bev, struct sockaddr *a
485485
#define BEV_UPCAST(b) EVUTIL_UPCAST((b), struct bufferevent_private, bev)
486486

487487
#ifdef EVENT__DISABLE_THREAD_SUPPORT
488-
#define BEV_LOCK(b) EVUTIL_NIL_STMT_
489-
#define BEV_UNLOCK(b) EVUTIL_NIL_STMT_
488+
#define BEV_LOCK(b) (void)(b)
489+
#define BEV_UNLOCK(b) (void)(b)
490490
#else
491491
/** Internal: Grab the lock (if any) on a bufferevent */
492492
#define BEV_LOCK(b) do { \

0 commit comments

Comments
 (0)