Re: [Qemu-devel] [PATCH] exec-all: Fix void pointer arithmetic

2011-10-30 Thread Blue Swirl
Thanks, applied. On Sun, Oct 23, 2011 at 06:19, Stefan Weil wrote: > Adding an offset to a void pointer works with gcc but is not allowed > by the current C standards. With -pedantic, gcc complains: > > exec-all.h:344: error: pointer of type ‘void *’ used in arithmetic > > Fix this, and also repl

[Qemu-devel] [PATCH] exec-all: Fix void pointer arithmetic

2011-10-22 Thread Stefan Weil
Adding an offset to a void pointer works with gcc but is not allowed by the current C standards. With -pedantic, gcc complains: exec-all.h:344: error: pointer of type ‘void *’ used in arithmetic Fix this, and also replace (unsigned int) by (uintptr_t) in the same statement. Signed-off-by: Stefan