diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-10-16 08:21:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-10-26 09:13:19 +0100 |
commit | f97536dcd310a1a15426dcd411d55367019879fc (patch) | |
tree | d37a1e12bac98a4df4a2dd70d5de3ee99f23d821 /cpukit/score/include/rtems/score/basedefs.h | |
parent | basdefs.h: Add and use RTEMS_DEPRECATED (diff) | |
download | rtems-f97536dcd310a1a15426dcd411d55367019879fc.tar.bz2 |
basdefs.h: Add and use RTEMS_UNUSED
Diffstat (limited to 'cpukit/score/include/rtems/score/basedefs.h')
-rw-r--r-- | cpukit/score/include/rtems/score/basedefs.h | 7 |
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. |