From 3b5dac6372bcebe4adf6d2ba20f585c755285bea Mon Sep 17 00:00:00 2001 From: Daniel Gollub Date: Wed, 12 Feb 2014 19:25:42 +0100 Subject: [PATCH] Fix g++ warning about void* used in arithmetic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../parse.h: In function ‘void* td_var(thread_options*, fio_option*, unsigned int)’: ../parse.h:110:10: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] ../parse.h:112:9: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] Signed-off-by: Daniel Gollub Signed-off-by: Jens Axboe --- parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.h b/parse.h index 5273d23f..1009252e 100644 --- a/parse.h +++ b/parse.h @@ -100,7 +100,7 @@ typedef int (fio_opt_str_val_fn)(void *, long long *); typedef int (fio_opt_int_fn)(void *, int *); typedef int (fio_opt_str_set_fn)(void *); -#define __td_var(start, offset) ((void *) start + (offset)) +#define __td_var(start, offset) ((char *) start + (offset)) struct thread_options; static inline void *td_var(struct thread_options *to, struct fio_option *o, -- 2.25.1