Flexible I/O Tester development
 help / color / mirror / Atom feed
* [PATCH] Fix g++ warning about void* used in arithmetic
@ 2014-02-12 18:25 Daniel Gollub
  2014-02-13  4:11 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Gollub @ 2014-02-12 18:25 UTC (permalink / raw)
  To: fio; +Cc: Daniel Gollub

../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 <d.gollub@telekom.de>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-13 16:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12 18:25 [PATCH] Fix g++ warning about void* used in arithmetic Daniel Gollub
2014-02-13  4:11 ` Jens Axboe
2014-02-13  6:13   ` Daniel Gollub
2014-02-13 10:32     ` Erwan Velu
2014-02-13 16:27       ` fio ioengines for CEPH (was: RE: [PATCH] Fix g++ warning about void* used in arithmetic) Gollub, Daniel
2014-02-13 15:05     ` [PATCH] Fix g++ warning about void* used in arithmetic Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox