[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 1/2] Fix net.c warning on GCC 11
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 1/2] Fix net.c warning on GCC 11 |
Date: |
Thu, 14 Jan 2021 15:35:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/14/21 3:19 PM, Alexander Bulekov wrote:
> On 210114 1415, Philippe Mathieu-Daudé wrote:
>> +Jason +Dmitry
>>
>> On 1/14/21 8:07 AM, Miroslav Rezanina wrote:
>>> When building qemu with GCC 11, compiling eth.c file produce following
>>> warning:
>>>
>>> warning: array subscript 'struct ip6_ext_hdr_routing[0]' is partly
>>> outside array bounds of 'struct ip6_ext_hdr[1]' [-Warray-bounds]
>>>
>>> This is caused by retyping from ip6_ext_hdr to ip6_ext_hdr_routing that has
>>> more
>>> attributes.
>>>
>>> As this usage is expected, suppress the warning temporarily through the
>>> function
>>> using this retyping.
>>
>> This is not expected, this is a bug...
>>
>
> Seems related: https://bugs.launchpad.net/qemu/+bug/1879531
Yes!