[PATCH 08/14] cpukit/rtems/src/*mp.c: Fix set but not used warning
Joel Sherrill
joel at rtems.org
Tue Mar 22 14:40:36 UTC 2016
---
cpukit/rtems/src/eventmp.c | 5 +++--
cpukit/rtems/src/msgmp.c | 2 ++
cpukit/rtems/src/partmp.c | 2 ++
cpukit/rtems/src/regionmp.c | 2 ++
cpukit/rtems/src/semmp.c | 2 ++
cpukit/rtems/src/taskmp.c | 2 ++
6 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/cpukit/rtems/src/eventmp.c b/cpukit/rtems/src/eventmp.c
index e2e43fc..dd20840 100644
--- a/cpukit/rtems/src/eventmp.c
+++ b/cpukit/rtems/src/eventmp.c
@@ -113,7 +113,6 @@ void _Event_MP_Process_packet (
)
{
Event_MP_Packet *the_packet;
- Thread_Control *the_thread;
the_packet = (Event_MP_Packet *) the_packet_prefix;
@@ -132,13 +131,15 @@ void _Event_MP_Process_packet (
);
break;
- case EVENT_MP_SEND_RESPONSE:
+ case EVENT_MP_SEND_RESPONSE: {
+ Thread_Control *the_thread;
the_thread = _MPCI_Process_response( the_packet_prefix );
_MPCI_Return_packet( the_packet_prefix );
break;
+ }
}
}
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index 83b5a31..f3bab5a 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -428,6 +428,8 @@ void _Message_queue_MP_Process_packet (
break;
}
+
+ ignored; /* avoid set but not used warning */
}
/*
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index 9593ce5..a02182c 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -260,6 +260,8 @@ void _Partition_MP_Process_packet (
break;
}
+
+ ignored; /* avoid set but not used warning */
}
/*
diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index 135a69d..63d4d84 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -249,6 +249,8 @@ void _Region_MP_Process_packet (
break;
}
+
+ ignored; /* avoid set but not used warning */
}
/*
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index f4c5cb7..8f0ca7f 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -231,6 +231,8 @@ void _Semaphore_MP_Process_packet (
);
break;
}
+
+ ignored; /* avoid set but not used warning */
}
void _Semaphore_MP_Send_object_was_deleted (
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index ef76e1f..ae81666 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -257,6 +257,8 @@ void _RTEMS_tasks_MP_Process_packet (
_MPCI_Return_packet( the_packet_prefix );
break;
}
+
+ ignored; /* avoid set but not used warning */
}
/*
--
1.8.3.1
More information about the devel
mailing list