From: Chen Gang Date: Wed, 15 Apr 2015 15:29:12 +0000 (+0000) Subject: gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty do-while loop as macro body... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d26b2237b36d3061de8150d5ca5fca6f4b97c736;p=gcc.git gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty do-while loop as macro body to avoid warnings. 2015-04-15 Chen Gang * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty do-while loop as macro body to avoid warnings. From-SVN: r222127 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 6fd8b8e0ca6..611223ab645 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-15 Chen Gang + + * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty + do-while loop as macro body to avoid warnings. + 2015-04-10 Jakub Jelinek Iain Sandoe diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h index bddded4f24e..00b3fd661bb 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__))