]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix GCC warnings about incompatible pointer assignments.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 5 Oct 2011 14:49:12 +0000 (14:49 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 5 Oct 2011 14:49:12 +0000 (14:49 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12105

drd/tests/pth_barrier.c

index 3b83dd6342782f1c89402a8136cb3ee910ad8eb3..854ee34edee878c5acc404e84583b08123a1554e 100644 (file)
@@ -47,7 +47,7 @@ static int s_silent;
 static void* threadfunc(struct threadinfo* p)
 {
   int i;
-  int* const array = p->array;
+  int8_t* const array = p->array;
   pthread_barrier_t* const b = p->b;
   if (! s_silent)
     printf("thread %lx iteration 0\n", pthread_self());
@@ -70,7 +70,7 @@ static void barriers_and_races(const int nthread, const int iterations)
   pthread_attr_t attr;
   struct threadinfo* t;
   pthread_barrier_t b;
-  int* array;
+  int8_t* array;
 
   t = malloc(nthread * sizeof(struct threadinfo));
   array = malloc(iterations * sizeof(array[0]));