From 5f1300a79e2e519387347e48c80029775068e08c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Aug 2010 09:16:08 +0000 Subject: [PATCH] 2010-08-09 Sebastian Huber * score/inline/rtems/score/object.inl: Use attribute unused in _Objects_Is_local_id(). --- cpukit/ChangeLog | 5 +++++ cpukit/score/inline/rtems/score/object.inl | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 50bc786f0c..722365c17f 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-08-09 Sebastian Huber + + * score/inline/rtems/score/object.inl: Use attribute unused in + _Objects_Is_local_id(). + 2010-08-09 Sebastian Huber * rtems/Makefile.am, rtems/preinstall.am: Install diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index 7db87bdde9..d4d39acac6 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -162,7 +162,11 @@ RTEMS_INLINE_ROUTINE bool _Objects_Is_local_node( * @note On a single processor configuration, this always returns true. */ RTEMS_INLINE_ROUTINE bool _Objects_Is_local_id( +#if defined(RTEMS_MULTIPROCESSING) Objects_Id id +#else + Objects_Id id __attribute__((unused)) +#endif ) { #if defined(RTEMS_MULTIPROCESSING)