about summary refs log tree commit diff
path: root/sysdeps/generic/malloc-machine.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-02-07 15:26:28 -0800
committerRoland McGrath <roland@hack.frob.com>2014-02-07 15:26:28 -0800
commit32749f6cd23f65a2df1bafbf9b69749bdded4b10 (patch)
tree286f6a962fd5c4b8e539cc59d4f6b2f8b0b1edc2 /sysdeps/generic/malloc-machine.h
parentd5b396c1c89ed3026fc89bfcdd72b14d59972e45 (diff)
downloadglibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.gz
glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.xz
glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.zip
Avoid comma operator warnings.
Diffstat (limited to 'sysdeps/generic/malloc-machine.h')
-rw-r--r--sysdeps/generic/malloc-machine.h2
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)