]> sourceware.org Git - glibc.git/commitdiff
NaCl: Fix unused variable errors in lowlevellock-futex.h macros.
authorRoland McGrath <roland@hack.frob.com>
Wed, 20 Jan 2016 21:57:14 +0000 (13:57 -0800)
committerRoland McGrath <roland@hack.frob.com>
Wed, 20 Jan 2016 21:57:14 +0000 (13:57 -0800)
ChangeLog
sysdeps/nacl/lowlevellock-futex.h

index ac8eb40ceb18c36fe59914f01217e5ea232460de..f1c6ac5cd0db1eb9414638c34d2790f675f63a46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-20  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/nacl/lowlevellock-futex.h
+       (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
+       Always evaluate PRIVATE argument.
+
 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        [BZ #19490]
index 5f7d45950b771290dd52b568e8de004b238e7732..5382f685ff426b8c09667767f8695c847b5e7916 100644 (file)
@@ -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)             \
     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); \
   })
 
This page took 0.192452 seconds and 5 git commands to generate.