From: Jens Axboe Date: Mon, 8 Aug 2016 17:32:34 +0000 (-0600) Subject: iolog: silence warning on pointer cast on 32-bit compiles X-Git-Tag: fio-2.14~43 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9973b0f961a57c19f885ffca05f86ae6ef85f8c7;ds=inline iolog: silence warning on pointer cast on 32-bit compiles Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 8a216b25..975ce6f7 100644 --- a/iolog.c +++ b/iolog.c @@ -692,7 +692,7 @@ void flush_hist_samples(FILE *f, int hist_coarseness, void *samples, for (i = 0; i < nr_samples; i++) { s = __get_sample(samples, log_offset, i); - io_u_plat = (unsigned int *) s->val; + io_u_plat = (unsigned int *) (uintptr_t) s->val; fprintf(f, "%lu, %u, %u, ", (unsigned long)s->time, io_sample_ddir(s), s->bs); for (j = 0; j < FIO_IO_U_PLAT_NR - stride; j += stride) {