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:
parent
3656aa9343
commit
1731ed8849
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user