summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-18 22:01:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-18 22:01:47 +0000
commit6f68d5faaf1f7d4d910c079cf9238360f00124c4 (patch)
tree23a877b7a894e4ae0054f785d7d1d10c4fde9eeb /cpukit
parent2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-6f68d5faaf1f7d4d910c079cf9238360f00124c4.tar.bz2
2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/mqueuegetattr.c, score/inline/rtems/score/schedulerpriority.inl: Remove warnings.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/posix/src/mqueuegetattr.c6
-rw-r--r--cpukit/score/inline/rtems/score/schedulerpriority.inl4
3 files changed, 6 insertions, 9 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index cc4da8f384..b279565318 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * posix/src/mqueuegetattr.c,
+ score/inline/rtems/score/schedulerpriority.inl: Remove warnings.
+
2011-04-16 Chris Johns <chrisj@rtems.org>
PR 1774/filesystem
diff --git a/cpukit/posix/src/mqueuegetattr.c b/cpukit/posix/src/mqueuegetattr.c
index 16a5c50b5f..9d33efdb5d 100644
--- a/cpukit/posix/src/mqueuegetattr.c
+++ b/cpukit/posix/src/mqueuegetattr.c
@@ -11,7 +11,7 @@
* This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
* time.
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -52,7 +52,6 @@ int mq_getattr(
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
- CORE_message_queue_Attributes *the_mq_attr;
if ( !mqstat )
rtems_set_errno_and_return_minus_one( EINVAL );
@@ -66,9 +65,6 @@ int mq_getattr(
/*
* Return the old values.
*/
-
- the_mq_attr = &the_mq->Message_queue.Attributes;
-
mqstat->mq_flags = the_mq_fd->oflag;
mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages;
diff --git a/cpukit/score/inline/rtems/score/schedulerpriority.inl b/cpukit/score/inline/rtems/score/schedulerpriority.inl
index 680606ce53..ab5f117334 100644
--- a/cpukit/score/inline/rtems/score/schedulerpriority.inl
+++ b/cpukit/score/inline/rtems/score/schedulerpriority.inl
@@ -86,10 +86,8 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue_first(
)
{
Scheduler_priority_Per_thread *sched_info;
- Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
- ready = sched_info->ready_chain;
_Priority_bit_map_Add( &sched_info->Priority_map );
@@ -159,10 +157,8 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_requeue(
)
{
Scheduler_priority_Per_thread *sched_info;
- Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
- ready = sched_info->ready_chain;
if ( !_Chain_Has_only_one_node( sched_info->ready_chain ) ) {
_Chain_Extract_unprotected( &the_thread->Object.Node );