|
From: Bart V. A. <bva...@ac...> - 2011-10-05 15:09:09
|
On Wed, Oct 5, 2011 at 4:49 PM, <sv...@va...> wrote:
> Author: florian
> Date: 2011-10-05 15:49:12 +0100 (Wed, 05 Oct 2011)
> New Revision: 12105
>
> Log:
> Fix GCC warnings about incompatible pointer assignments.
>
>
> Modified:
> trunk/drd/tests/pth_barrier.c
>
>
> Modified: trunk/drd/tests/pth_barrier.c
> ===================================================================
> --- trunk/drd/tests/pth_barrier.c 2011-10-05 14:36:00 UTC (rev 12104)
> +++ trunk/drd/tests/pth_barrier.c 2011-10-05 14:49:12 UTC (rev 12105)
> @@ -47,7 +47,7 @@
> 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 @@
> 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]));
Thanks - I'm not sure how it's possible that I missed these.
Bart.
|