[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: 8afeb993f8823f2534e08d301e4fa003b5ef5019
Changeset: http://git.rtems.org/rtems/commit/?id=8afeb993f8823f2534e08d301e4fa003b5ef5019
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Mar 30 08:29:07 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/semmp.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index 8f0ca7f..66b74ad 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -159,7 +159,6 @@ void _Semaphore_MP_Process_packet (
{
Semaphore_MP_Packet *the_packet;
Thread_Control *the_thread;
- bool ignored;
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
@@ -167,12 +166,12 @@ void _Semaphore_MP_Process_packet (
case SEMAPHORE_MP_ANNOUNCE_CREATE:
- ignored = _Objects_MP_Allocate_and_open(
- &_Semaphore_Information,
- the_packet->name,
- the_packet->Prefix.id,
- true
- );
+ _Objects_MP_Allocate_and_open(
+ &_Semaphore_Information,
+ the_packet->name,
+ the_packet->Prefix.id,
+ true
+ );
_MPCI_Return_packet( the_packet_prefix );
break;
@@ -231,8 +230,6 @@ void _Semaphore_MP_Process_packet (
);
break;
}
-
- ignored; /* avoid set but not used warning */
}
void _Semaphore_MP_Send_object_was_deleted (
More information about the vc
mailing list