../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 <[email protected]>
---
 parse.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.h b/parse.h
index 5273d23..1009252 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,
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to