Author: bonefish Date: 2010-04-07 20:27:34 +0200 (Wed, 07 Apr 2010) New Revision: 36068 Changeset: http://dev.haiku-os.org/changeset/36068/haiku Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-2.c haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-3.c haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/1-2.c haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/3-1.c haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutexattr_settype/3-2.c Log: pthread_exit() cannot return, but the "noreturn" attribute is really a compiler feature (which we haven't set yet). So return some dummy value. Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-2.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-2.c 2010-04-07 18:24:13 UTC (rev 36067) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-2.c 2010-04-07 18:27:34 UTC (rev 36068) @@ -72,6 +72,8 @@ fprintf(stderr,"Test FAILED: pthread_cond_timedwait return %d instead of ETIMEDOUT\n", rc); pthread_exit((void*)PTS_FAIL); } + + return NULL; } int main() Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-3.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-3.c 2010-04-07 18:24:13 UTC (rev 36067) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/2-3.c 2010-04-07 18:27:34 UTC (rev 36068) @@ -62,6 +62,8 @@ fprintf(stderr,"pthread_cond_timedwait return %d instead of ETIMEDOUT\n", rc); exit(PTS_FAIL); } + + return NULL; } int main() Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/1-2.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/1-2.c 2010-04-07 18:24:13 UTC (rev 36067) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/1-2.c 2010-04-07 18:27:34 UTC (rev 36068) @@ -41,6 +41,7 @@ } pthread_exit(0); + return NULL; } int main() Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/3-1.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/3-1.c 2010-04-07 18:24:13 UTC (rev 36067) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/3-1.c 2010-04-07 18:27:34 UTC (rev 36068) @@ -50,6 +50,7 @@ /* The thread ends here, the destructor for the key should now be called after this */ pthread_exit(0); + return NULL; } int main() Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutexattr_settype/3-2.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutexattr_settype/3-2.c 2010-04-07 18:24:13 UTC (rev 36067) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutexattr_settype/3-2.c 2010-04-07 18:27:34 UTC (rev 36068) @@ -42,6 +42,7 @@ /* Try to unlock the mutex that main already locked. */ ret=pthread_mutex_unlock(&mutex); pthread_exit((void*)0); + return NULL; }