aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2008-03-24 11:18:22 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2008-03-24 11:18:22 +0000
commit37ca4602e62349bcd982429df91853a4b9f81b3b (patch)
tree476e005476473af7966f302a473601f225e8ae22
parent15f6d6e7671dc3c18805d3bad0de2cb3d59b70a0 (diff)
downloadgcc-37ca4602e62349bcd982429df91853a4b9f81b3b.zip
gcc-37ca4602e62349bcd982429df91853a4b9f81b3b.tar.gz
gcc-37ca4602e62349bcd982429df91853a4b9f81b3b.tar.bz2
* gthr-vxworks.h (UNUSED): Define.
From-SVN: r133477
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gthr-vxworks.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b9f4ec2..0d28bd0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
+
+ * gthr-vxworks.h (UNUSED): Define.
+
2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
diff --git a/gcc/gthr-vxworks.h b/gcc/gthr-vxworks.h
index ba81314..7a61a5a 100644
--- a/gcc/gthr-vxworks.h
+++ b/gcc/gthr-vxworks.h
@@ -36,6 +36,11 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "gthr-posix.h"
#else
+#ifdef __cplusplus
+#define UNUSED(x)
+#else
+#define UNUSED(x) x __attribute__((unused))
+#endif
#ifdef __cplusplus
extern "C" {
@@ -141,6 +146,8 @@ extern int __gthread_key_delete (__gthread_key_t key);
extern void *__gthread_getspecific (__gthread_key_t key);
extern int __gthread_setspecific (__gthread_key_t key, void *ptr);
+#undef UNUSED
+
#ifdef __cplusplus
}
#endif