1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-02 21:11:05 +01:00

Cast second value of a ?: to void in estream.c.

* common/estream.c (ESTREAM_MUTEX_LOCK): Cast pth_mutex_acquire result
to void.  Some compilers choke on mixing void and int in an
conditional operator.  Reported by Nelson H. F. Beebe.
This commit is contained in:
Werner Koch 2012-03-30 15:29:35 +02:00
parent 3656aa9343
commit 1731ed8849

View File

@ -176,7 +176,7 @@ static int estream_pth_killed;
# define ESTREAM_MUTEX_INITIALIZER PTH_MUTEX_INIT
# define ESTREAM_MUTEX_LOCK(mutex) \
(estream_pth_killed ? dummy_mutex_call_void ((mutex)) \
: pth_mutex_acquire (&(mutex), 0, NULL))
: (void)pth_mutex_acquire (&(mutex), 0, NULL))
# define ESTREAM_MUTEX_UNLOCK(mutex) \
(estream_pth_killed ? dummy_mutex_call_void ((mutex)) \
: pth_mutex_release (&(mutex)))