summaryrefslogtreecommitdiff
path: root/gcc/gthr-vxworks.h
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-24 11:18:22 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-24 11:18:22 +0000
commit0a824f63207a977a14f30be3cc3dcd5835f36489 (patch)
tree476e005476473af7966f302a473601f225e8ae22 /gcc/gthr-vxworks.h
parent2ada93f30687cfcbfdaef6df0734e3910d5ae9f2 (diff)
downloadgcc-0a824f63207a977a14f30be3cc3dcd5835f36489.tar.gz
* gthr-vxworks.h (UNUSED): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-vxworks.h')
-rw-r--r--gcc/gthr-vxworks.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gthr-vxworks.h b/gcc/gthr-vxworks.h
index ba813140d76..7a61a5a40f7 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