mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue