[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings |
Date: |
Mon, 26 Oct 2020 10:50:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 23/10/20 22:06, Daniele Buono wrote:
> 1 error generated.
>
> The data structure is UASStatus, which must end with a QTAILQ_ENTRY, so
> I believe we cannot have uas_iu at the end. Since this is a gnu
> extension but CLANG supports it, just add
> -Wno-gnu-variable-sized-type-not-at-end
This is potentially a real bug, in this case it works only because
UASStatus's packet is never uas_iu_command (which has the variable sized
type).
The QTAILQ_ENTRY need not be at the end, please rearrange UASStatus's
field so that the "usb_ui status" field is the last.
Thanks,
Paolo
- [PATCH v2 0/6] Add support for Control-Flow Integrity, Daniele Buono, 2020/10/23
- [PATCH v2 1/6] fuzz: Make fork_fuzz.ld compatible with LLVM's LLD, Daniele Buono, 2020/10/23
- [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Daniele Buono, 2020/10/23
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Thomas Huth, 2020/10/24
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings,
Paolo Bonzini <=
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Daniele Buono, 2020/10/26
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Paolo Bonzini, 2020/10/26
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Daniele Buono, 2020/10/26
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Peter Maydell, 2020/10/26
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Thomas Huth, 2020/10/27
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Cornelia Huck, 2020/10/27
- Re: [PATCH v2 2/6] configure: avoid new clang 11+ warnings, Daniele Buono, 2020/10/27
[PATCH v2 3/6] configure: add option to enable LTO, Daniele Buono, 2020/10/23