From: cpickett Date: Tue, 30 Dec 2008 22:12:20 +0000 (+0000) Subject: * silence check_thread_stress warnings X-Git-Tag: 0.10.0~668 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7aed289b6a5fd1ee3f031e1b0cec32d20eccce4;p=check * silence check_thread_stress warnings git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@496 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_thread_stress.c b/tests/check_thread_stress.c index 28bc51b..954befd 100644 --- a/tests/check_thread_stress.c +++ b/tests/check_thread_stress.c @@ -11,7 +11,7 @@ Suite *s; TCase *tc; SRunner *sr; -void *sendinfo_thread(void *userdata) +static void *sendinfo_thread(void *userdata CK_ATTRIBUTE_UNUSED) { unsigned int i; for (i=0; i < 100; i++) { @@ -22,7 +22,7 @@ void *sendinfo_thread(void *userdata) } -void *sendinfo_fail_thread(void *userdata) +static void *sendinfo_fail_thread(void *userdata CK_ATTRIBUTE_UNUSED) { unsigned int i; for (i=0; i < 100; i++) { @@ -42,8 +42,8 @@ START_TEST(test_pass) pthread_join(a, NULL); pthread_join(b, NULL); #else - sendinfo_thread(0xa); - sendinfo_thread(0xb); + sendinfo_thread((void *) 0xa); + sendinfo_thread((void *) 0xb); #endif } END_TEST @@ -58,8 +58,8 @@ START_TEST(test_fail) pthread_join(a, NULL); pthread_join(b, NULL); #else - sendinfo_fail_thread(0xa); - sendinfo_fail_thread(0xb); + sendinfo_fail_thread((void *) 0xa); + sendinfo_fail_thread((void *) 0xb); #endif } END_TEST