diff options
Diffstat (limited to 'sysdeps/nacl/lowlevellock-futex.h')
-rw-r--r-- | sysdeps/nacl/lowlevellock-futex.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/nacl/lowlevellock-futex.h b/sysdeps/nacl/lowlevellock-futex.h index b614ac8183..5382f685ff 100644 --- a/sysdeps/nacl/lowlevellock-futex.h +++ b/sysdeps/nacl/lowlevellock-futex.h @@ -1,5 +1,5 @@ /* Low-level locking access to futex facilities. NaCl version. - Copyright (C) 2015 Free Software Foundation, Inc. + Copyright (C) 2015-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -35,7 +35,8 @@ /* Wait while *FUTEXP == VAL for an lll_futex_wake call on FUTEXP. */ #define lll_futex_wait(futexp, val, private) \ - (- __nacl_irt_futex.futex_wait_abs ((volatile int *) (futexp), val, NULL)) + ((void) (private), \ + - __nacl_irt_futex.futex_wait_abs ((volatile int *) (futexp), val, NULL)) /* Wait until a lll_futex_wake call on FUTEXP, or TIMEOUT elapses. */ #define lll_futex_timed_wait(futexp, val, timeout, private) \ @@ -60,13 +61,15 @@ if (_err == 0) \ _err = __nacl_irt_futex.futex_wait_abs \ ((volatile int *) (futexp), val, _to); \ - -_err; \ + (void) (private); \ + -_err; \ }) /* Wake up up to NR waiters on FUTEXP. */ #define lll_futex_wake(futexp, nr, private) \ ({ \ int _woken; \ + (void) (private); \ - __nacl_irt_futex.futex_wake ((volatile int *) (futexp), nr, &_woken); \ }) |