aboutsummaryrefslogtreecommitdiff
path: root/libgcc/gthr-single.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-15 15:29:12 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-15 15:29:12 +0000
commita0093a4f981e002bab3c87a9957ab8f8fddcb041 (patch)
tree0bcb8a8bfffe1345fd1b43a30119b6a23c156165 /libgcc/gthr-single.h
parent88a591391c2dcc621285757e8dfbab4784893289 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222127 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/gthr-single.h')
-rw-r--r--libgcc/gthr-single.h2
1 files changed, 1 insertions, 1 deletions
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__))