Hi Daniel and Alex, On Thu, Jun 20, 2024 at 8:10 AM Alex Bennée <alex.ben...@linaro.org> wrote: > > Daniel P. Berrangé <berra...@redhat.com> writes: > > NB, QEMU is explicitly *NOT* targetting the C standard, we are > > targetting the C dialect supported by GCC and CLang only. IOW, > > if they have well defined behaviour for arithmetic on void *, > > then we are free to use it. > > It looks like GNU C does support it:
GCC does support void* pointer arithmetic as an extension. But if you decide to use other compilers, you might not have the same luck. We (and maybe other developers) would like to use the QEMU headers with a C++ compiler where this extension is not available. Regards, Roman.