verify: don't use void* for pointer arithmetic (gcc)
[fio.git] / t / verify-state.c
index 9a2c3df68cb1db568844ad263a600b3a43285167..78a56dafd26878e3a5fec7bced3382fe20385c43 100644 (file)
@@ -58,7 +58,8 @@ static void show(struct thread_io_list *s, size_t size)
                show_s(s, no_s);
                no_s++;
                size -= __thread_io_list_sz(s->depth, s->nofiles);
-               s = (void *) s + __thread_io_list_sz(s->depth, s->nofiles);
+               s = (struct thread_io_list *)((char *) s +
+                       __thread_io_list_sz(s->depth, s->nofiles));
        } while (size != 0);
 }