From 6f68d5faaf1f7d4d910c079cf9238360f00124c4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 18 Apr 2011 22:01:47 +0000 Subject: 2011-04-18 Joel Sherrill * posix/src/mqueuegetattr.c, score/inline/rtems/score/schedulerpriority.inl: Remove warnings. --- cpukit/ChangeLog | 5 +++++ cpukit/posix/src/mqueuegetattr.c | 6 +----- cpukit/score/inline/rtems/score/schedulerpriority.inl | 4 ---- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'cpukit') 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 + + * posix/src/mqueuegetattr.c, + score/inline/rtems/score/schedulerpriority.inl: Remove warnings. + 2011-04-16 Chris Johns 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 ); -- cgit v1.2.3