diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-02-07 15:26:28 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-02-07 15:26:28 -0800 |
commit | 32749f6cd23f65a2df1bafbf9b69749bdded4b10 (patch) | |
tree | 286f6a962fd5c4b8e539cc59d4f6b2f8b0b1edc2 /sysdeps/generic/malloc-machine.h | |
parent | d5b396c1c89ed3026fc89bfcdd72b14d59972e45 (diff) | |
download | glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.gz glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.bz2 glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.zip |
Avoid comma operator warnings.
Diffstat (limited to 'sysdeps/generic/malloc-machine.h')
-rw-r--r-- | sysdeps/generic/malloc-machine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/malloc-machine.h b/sysdeps/generic/malloc-machine.h index df7adebe26..a1b7655fbc 100644 --- a/sysdeps/generic/malloc-machine.h +++ b/sysdeps/generic/malloc-machine.h @@ -35,7 +35,7 @@ typedef int mutex_t; # define mutex_init(m) (*(m) = 0) -# define mutex_lock(m) ((*(m) = 1), 0) +# define mutex_lock(m) ({ *(m) = 1; 0; }) # define mutex_trylock(m) (*(m) ? 1 : ((*(m) = 1), 0)) # define mutex_unlock(m) (*(m) = 0) # define MUTEX_INITIALIZER (0) |