summaryrefslogtreecommitdiff
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
parent88a591391c2dcc621285757e8dfbab4784893289 (diff)
downloadgcc-a0093a4f981e002bab3c87a9957ab8f8fddcb041.tar.gz
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
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/gthr-single.h2
2 files changed, 6 insertions, 1 deletions
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 <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 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__))