From 32749f6cd23f65a2df1bafbf9b69749bdded4b10 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 7 Feb 2014 15:26:28 -0800 Subject: Avoid comma operator warnings. --- sysdeps/generic/malloc-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') 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) -- cgit 1.4.1