diff options
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r-- | cpukit/score/include/rtems/score/basedefs.h | 7 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/objectimpl.h | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/sysstate.h | 2 |
3 files changed, 7 insertions, 4 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. diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h index 1919cd1d64..80c50a5b56 100644 --- a/cpukit/score/include/rtems/score/objectimpl.h +++ b/cpukit/score/include/rtems/score/objectimpl.h @@ -774,7 +774,7 @@ RTEMS_INLINE_ROUTINE bool _Objects_Is_local_id( #if defined(RTEMS_MULTIPROCESSING) Objects_Id id #else - Objects_Id id __attribute__((unused)) + Objects_Id id RTEMS_UNUSED #endif ) { diff --git a/cpukit/score/include/rtems/score/sysstate.h b/cpukit/score/include/rtems/score/sysstate.h index 7548c1f80b..fbdeff95fa 100644 --- a/cpukit/score/include/rtems/score/sysstate.h +++ b/cpukit/score/include/rtems/score/sysstate.h @@ -80,7 +80,7 @@ RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization ( #if defined(RTEMS_MULTIPROCESSING) bool is_multiprocessing #else - bool is_multiprocessing __attribute__((unused)) + bool is_multiprocessing RTEMS_UNUSED #endif ) { |