I\'m learning Pthreads. My code executes the way I want it to, I\'m able to use it. But it gives me a warning on compilation.
I compile using:
gcc
Try passing
pthread_create(&(tid[i]), &attr, runner, (void*)&i);