2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>

* posix/src/condtimedwait.c, posix/src/mutextimedlock.c,
	posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
	posix/src/semopen.c: Silence warnings.
This commit is contained in:
Joel Sherrill
2009-05-03 23:10:02 +00:00
parent 16bde857e1
commit 1e3940d547
6 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semopen.c: Silence warnings.
2009-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sapi/include/confdefs.h, libblock/include/rtems/bdbuf.h: Changed

View File

@@ -59,6 +59,7 @@ int pthread_cond_timedwait(
already_timedout = true;
break;
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
default: /* only to silence warnings */
already_timedout = false;
break;
}

View File

@@ -64,16 +64,12 @@ int pthread_mutex_timedlock(
do_wait = false;
break;
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
default: /* only to silence warnings */
do_wait = true;
break;
}
lock_status = _POSIX_Mutex_Lock_support(
mutex,
do_wait,
ticks
);
lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );
/*
* This service only gives us the option to block. We used a polling
* attempt to lock if the abstime was not in the future. If we did

View File

@@ -66,6 +66,7 @@ int pthread_rwlock_timedrdlock(
do_wait = false;
break;
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
default: /* only to silence warnings */
do_wait = true;
break;
}

View File

@@ -66,6 +66,7 @@ int pthread_rwlock_timedwrlock(
do_wait = false;
break;
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
default: /* only to silence warnings */
do_wait = true;
break;
}

View File

@@ -130,7 +130,7 @@ return_id:
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
id = &the_semaphore->Object.id;
id = (sem_t *)&the_semaphore->Object.id;
#endif
return id;
}