[rtems commit] score: Fix statement with no effect warning

Sebastian Huber sebh at rtems.org
Wed Mar 30 06:47:08 UTC 2016


Module:    rtems
Branch:    master
Commit:    9f714333ce12eb8f60c85059ec1816b3b126454b
Changeset: http://git.rtems.org/rtems/commit/?id=9f714333ce12eb8f60c85059ec1816b3b126454b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar 30 08:31:26 2016 +0200

score: Fix statement with no effect warning

No need to add an assert due to the fatal error parameter passed to
_Objects_MP_Allocate_and_open().

---

 cpukit/rtems/src/regionmp.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index 63d4d84..bd4e04f 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -166,7 +166,6 @@ void _Region_MP_Process_packet (
 {
   Region_MP_Packet *the_packet;
   Thread_Control   *the_thread;
-  bool              ignored;
 
   the_packet = (Region_MP_Packet *) the_packet_prefix;
 
@@ -174,12 +173,12 @@ void _Region_MP_Process_packet (
 
     case REGION_MP_ANNOUNCE_CREATE:
 
-      ignored = _Objects_MP_Allocate_and_open(
-                  &_Region_Information,
-                  the_packet->name,
-                  the_packet->Prefix.id,
-                  true
-                );
+      _Objects_MP_Allocate_and_open(
+        &_Region_Information,
+        the_packet->name,
+        the_packet->Prefix.id,
+        true
+      );
 
       _MPCI_Return_packet( the_packet_prefix );
       break;
@@ -249,8 +248,6 @@ void _Region_MP_Process_packet (
       break;
 
   }
-
-  ignored; /* avoid set but not used warning */
 }
 
 /*



More information about the vc mailing list