[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-08-15 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1824528 Title: qemu fails to compile on gcc 9 `error: taking address of packed member

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-05-09 Thread Peter Maydell
The fixes for this issue in dev-mtp.c are now in QEMU git master and will be in the 4.1 release. ** Changed in: qemu Status: In Progress => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-18 Thread Daniel Berrange
Fixed in https://lists.gnu.org/archive/html/qemu-devel/2019-04/msg02524.html ** Changed in: qemu Status: New => In Progress -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1824528 Title: qem

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-16 Thread Satheesh Rajendran
** Tags added: compilation gcc9 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1824528 Title: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an u

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-16 Thread Satheesh Rajendran
Sure, Thanks, using the workaround to proceed. Good if each commit goes through a automated build test across different platforms vs gcc versions. Regards, -Satheesh. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.laun

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-12 Thread Peter Maydell
As a workaround, the simplest thing is to configure with --disable- werror, which will reduce these from errors to warnings. (This is the default if you're building from one of our release tarballs, but for builds from git we default to making all warnings into errors so we catch and fix them quick

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-12 Thread Daniel Berrange
This struct represents the MTP protocol wire format so *must* be marked packed. There unfortunately quite a few flaws in this MTP code area, so fixing the gcc warning is not straightforward. https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg07763.html -- You received this bug notificatio

[Qemu-devel] [Bug 1824528] Re: qemu fails to compile on gcc 9 `error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member

2019-04-12 Thread Satheesh Rajendran
Tried to patch as below and it compiles fine, not sure if this is right fix though, # git diff diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index ebf210f..7d512e5 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -231,7 +231,7 @@ typedef struct { char date_modified[0]; /*unused*/