2006-02-01 Joel Sherrill <joel@OARcorp.com>

* posix/inline/rtems/posix/cond.inl, posix/macros/rtems/posix/cond.inl,
	posix/src/conddestroy.c: Remove warnings.
This commit is contained in:
Joel Sherrill
2006-02-01 18:57:34 +00:00
parent 11b4e077e9
commit d2e1d3a39e
4 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2006-02-01 Joel Sherrill <joel@OARcorp.com>
* posix/inline/rtems/posix/cond.inl, posix/macros/rtems/posix/cond.inl,
posix/src/conddestroy.c: Remove warnings.
2006-02-01 Joel Sherrill <joel@OARcorp.com>
* rtems/src/tasks.c, rtems/src/taskvariableadd.c,

View File

@@ -56,10 +56,11 @@ RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free (
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
*_POSIX_Condition_variables_Get (
Objects_Id *id,
pthread_cond_t *cond,
Objects_Locations *location
)
{
Objects_Id *id = (Objects_Id *)cond;
int status;
if ( !id ) {

View File

@@ -53,8 +53,9 @@
* PTHREAD_COND_INITIALIZER without adding overhead.
*/
#define ___POSIX_Condition_variables_Get_support( _id, _location ) \
#define ___POSIX_Condition_variables_Get_support( _cond, _location ) \
do { \
Objects_Id *id = (Objects_Id *)_cond; \
int _status; \
\
if ( !_id ) { \

View File

@@ -27,8 +27,8 @@ int pthread_cond_destroy(
pthread_cond_t *cond
)
{
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {