From ce92867bea9b027af4119c694aa6b72a043b4fea Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 2 Feb 2005 00:06:18 +0000 Subject: 2005-02-01 Joel Sherrill * libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings. --- cpukit/posix/macros/rtems/posix/cond.inl | 5 ++++- cpukit/posix/macros/rtems/posix/mutex.inl | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/macros/rtems/posix/cond.inl b/cpukit/posix/macros/rtems/posix/cond.inl index 5cec198e23..8dd08f23d4 100644 --- a/cpukit/posix/macros/rtems/posix/cond.inl +++ b/cpukit/posix/macros/rtems/posix/cond.inl @@ -76,7 +76,10 @@ } while (0) -static POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( +/* If we find a compiler that doesn't accept static inline functions, + * then this will have to move to a .c file. Until then, we will use this. + */ +static inline POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( Objects_Id *id, Objects_Locations *location ) diff --git a/cpukit/posix/macros/rtems/posix/mutex.inl b/cpukit/posix/macros/rtems/posix/mutex.inl index f1b9c98a8f..15265738ab 100644 --- a/cpukit/posix/macros/rtems/posix/mutex.inl +++ b/cpukit/posix/macros/rtems/posix/mutex.inl @@ -67,7 +67,10 @@ } \ } while (0) -static POSIX_Mutex_Control * _POSIX_Mutex_Get( +/* If we find a compiler that doesn't accept static inline functions, + * then this will have to move to a .c file. Until then, we will use this. + */ +static inline POSIX_Mutex_Control * _POSIX_Mutex_Get( Objects_Id *id, Objects_Locations *location ) @@ -78,7 +81,10 @@ static POSIX_Mutex_Control * _POSIX_Mutex_Get( _Objects_Get( &_POSIX_Mutex_Information, *id, location ); } -static POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable( +/* If we find a compiler that doesn't accept static inline functions, + * then this will have to move to a .c file. Until then, we will use this. + */ +static inline POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable( Objects_Id *id, Objects_Locations *location, ISR_Level *level -- cgit v1.2.3