Re: [PATCH] iov: don't use void* in pointer arithmetic in headers

2024-07-10 Thread Roman Kiryanov
Hi Peter, thank you for looking into this. On Tue, Jul 9, 2024 at 2:39 AM Peter Maydell wrote: > We had the question on a previous "make this C++ > compatible" patch of "how much of this stuff is there?". Unfortunately, we don't know yet (we are still upgrading to QEMU8). If this is a burden fo

Re: [PATCH] iov: don't use void* in pointer arithmetic in headers

2024-07-09 Thread Peter Maydell
On Mon, 8 Jul 2024 at 19:18, Roman Kiryanov wrote: > > void* pointer arithmetic is a GCC extentension > which could not be available in other build tools > (e.g. C++). This changes removes this assumption. > > Signed-off-by: Roman Kiryanov We had the question on a previous "make this C++ compati

[PATCH] iov: don't use void* in pointer arithmetic in headers

2024-07-08 Thread Roman Kiryanov
void* pointer arithmetic is a GCC extentension which could not be available in other build tools (e.g. C++). This changes removes this assumption. Signed-off-by: Roman Kiryanov --- include/qemu/iov.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/qemu/iov.h b/inc