From: Julian Seward Date: Wed, 16 Mar 2011 10:44:13 +0000 (+0000) Subject: Fix compile warnings (missing prototypes for malloc, or some such). X-Git-Tag: svn/VALGRIND_3_7_0~584 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eae2f4ee815b7b62b710b87ce628fc388d46c6ff;p=thirdparty%2Fvalgrind.git Fix compile warnings (missing prototypes for malloc, or some such). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11645 --- diff --git a/helgrind/tests/tc23_bogus_condwait.c b/helgrind/tests/tc23_bogus_condwait.c index aab6f89c32..a13632ce22 100644 --- a/helgrind/tests/tc23_bogus_condwait.c +++ b/helgrind/tests/tc23_bogus_condwait.c @@ -6,6 +6,7 @@ #include #include #include +#include pthread_mutex_t mx[4]; pthread_cond_t cv; pthread_rwlock_t rwl; @@ -34,7 +35,6 @@ void* rescue_me ( void* uu ) my_sem_wait( quit_now ); return NULL; } - void* grab_the_lock ( void* uu ) { int r= pthread_mutex_lock( &mx[2] ); assert(!r);