diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2015-04-15 15:29:12 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-04-15 09:29:12 -0600 |
commit | d26b2237b36d3061de8150d5ca5fca6f4b97c736 (patch) | |
tree | 0bcb8a8bfffe1345fd1b43a30119b6a23c156165 /libgcc | |
parent | 0567dcd254ce9a8e2900ed3c54ea269ecb0d09e0 (diff) | |
download | gcc-d26b2237b36d3061de8150d5ca5fca6f4b97c736.zip gcc-d26b2237b36d3061de8150d5ca5fca6f4b97c736.tar.gz gcc-d26b2237b36d3061de8150d5ca5fca6f4b97c736.tar.bz2 |
gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty do-while loop as macro body to avoid warnings.
2015-04-15 Chen Gang <gang.chen.5i5j@gmail.com>
* gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty
do-while loop as macro body to avoid warnings.
From-SVN: r222127
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/gthr-single.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 6fd8b8e..611223a 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-15 Chen Gang <gang.chen.5i5j@gmail.com> + + * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty + do-while loop as macro body to avoid warnings. + 2015-04-10 Jakub Jelinek <jakub@redhat.com> Iain Sandoe <iain@codesourcery.com> diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h index bddded4..00b3fd6 100644 --- a/libgcc/gthr-single.h +++ b/libgcc/gthr-single.h @@ -35,7 +35,7 @@ typedef int __gthread_recursive_mutex_t; #define __GTHREAD_ONCE_INIT 0 #define __GTHREAD_MUTEX_INIT 0 -#define __GTHREAD_MUTEX_INIT_FUNCTION(mx) +#define __GTHREAD_MUTEX_INIT_FUNCTION(mx) do {} while (0) #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 #define UNUSED __attribute__((__unused__)) |