summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/basedefs.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 831a40b672..3b6723ecae 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -217,11 +217,14 @@
* in a variable argument method.
*/
#if defined(__GNUC__)
- #define RTEMS_COMPILER_UNUSED_ATTRIBUTE __attribute__((unused))
+ #define RTEMS_UNUSED __attribute__((__unused__))
#else
- #define RTEMS_COMPILER_UNUSED_ATTRIBUTE
+ #define RTEMS_UNUSED
#endif
+/* Provided for backward compatibility */
+#define RTEMS_COMPILER_UNUSED_ATTRIBUTE RTEMS_UNUSED
+
/**
* Instructs the compiler that a specific structure or union members will be
* placed so that the least memory is used.