From: cpickett Date: Wed, 31 Dec 2008 22:56:53 +0000 (+0000) Subject: * define sendinfo() conditionally to silence warning X-Git-Tag: 0.10.0~652 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68c98a68247021c251f59435c03d77ca0443a3b0;p=check * define sendinfo() conditionally to silence warning git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@512 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_thread_stress.c b/tests/check_thread_stress.c index 8e9412b..e5fd95d 100644 --- a/tests/check_thread_stress.c +++ b/tests/check_thread_stress.c @@ -8,6 +8,7 @@ Suite *s; TCase *tc; SRunner *sr; +#if defined (HAVE_PTHREAD) || defined (_POSIX_VERSION) static void * sendinfo (void *userdata CK_ATTRIBUTE_UNUSED) { @@ -18,6 +19,7 @@ sendinfo (void *userdata CK_ATTRIBUTE_UNUSED) } return NULL; } +#endif /* HAVE_PTHREAD || _POSIX_VERSION */ #ifdef HAVE_PTHREAD START_TEST (test_stress_threads)