[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 0/2] hw/usb/dev-uas: Fix Clang 11 -Wgnu-variable-sized-ty
From: |
Gerd Hoffmann |
Subject: |
Re: [RFC PATCH 0/2] hw/usb/dev-uas: Fix Clang 11 -Wgnu-variable-sized-type-not-at-end error |
Date: |
Tue, 19 Jan 2021 17:41:21 +0100 |
On Mon, Jan 18, 2021 at 06:03:06PM +0100, Philippe Mathieu-Daudé wrote:
> Another attempt to fix the following Clang 11 warning:
>
> usb/dev-uas.c:157:31: error: field 'status' with variable sized type 'uas_i=
> u' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-vari=
> able-sized-type-not-at-end]
> uas_iu status;
> ^
> If a guest send a packet with additional data, respond
> with "Illegal Request - parameter not supported".
Why rfc? looks good to me as-is ;)
thanks,
Gerd