Re: [PATCH] usb: Fix clang build

2021-01-20 Thread Daniel P . Berrangé
On Wed, Jan 20, 2021 at 12:20:43AM +0100, Philippe Mathieu-Daudé wrote: > Hi Eric, > > On 1/20/21 12:07 AM, Eric Blake wrote: > > ../hw/usb/dev-uas.c:157:31: error: field 'status' with variable sized type > > 'uas_iu' not at the end of a struct or class is a GNU extension > > [-Werror,-Wgnu-vari

Re: [PATCH] usb: Fix clang build

2021-01-19 Thread Philippe Mathieu-Daudé
On 1/20/21 12:20 AM, Philippe Mathieu-Daudé wrote: > Hi Eric, > > On 1/20/21 12:07 AM, Eric Blake wrote: >> ../hw/usb/dev-uas.c:157:31: error: field 'status' with variable sized type >> 'uas_iu' not at the end of a struct or class is a GNU extension >> [-Werror,-Wgnu-variable-sized-type-not-at-e

Re: [PATCH] usb: Fix clang build

2021-01-19 Thread Philippe Mathieu-Daudé
Hi Eric, On 1/20/21 12:07 AM, Eric Blake wrote: > ../hw/usb/dev-uas.c:157:31: error: field 'status' with variable sized type > 'uas_iu' not at the end of a struct or class is a GNU extension > [-Werror,-Wgnu-variable-sized-type-not-at-end] > uas_iustatus; >

[PATCH] usb: Fix clang build

2021-01-19 Thread Eric Blake
../hw/usb/dev-uas.c:157:31: error: field 'status' with variable sized type 'uas_iu' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] uas_iustatus; ^ Fix this by specifying a size for the ad