Re: [Qemu-devel] [PATCH] qxl: fix -Waddress-of-packed-member

2019-05-03 Thread Philippe Mathieu-Daudé
On 4/8/19 10:12 PM, Marc-André Lureau wrote: > The GCC9 compiler complains about QXL code that takes the address of > members of the 'struct QXLReleaseRing' which is marked packed: > > CC hw/display/qxl.o > /home/elmarco/src/qemu/hw/display/qxl.c: In function ‘init_qxl_ram’: > /home/elmarco

[Qemu-devel] [PATCH] qxl: fix -Waddress-of-packed-member

2019-04-08 Thread Marc-André Lureau
The GCC9 compiler complains about QXL code that takes the address of members of the 'struct QXLReleaseRing' which is marked packed: CC hw/display/qxl.o /home/elmarco/src/qemu/hw/display/qxl.c: In function ‘init_qxl_ram’: /home/elmarco/src/qemu/hw/display/qxl.c:50:19: warning: taking address