[SeaBIOS] Re: [PATCH] std/tcg: Replace zero-length array with flexible-array member

2020-03-06 Thread Stefan Berger
On 3/3/20 11:50 AM, Paul Menzel wrote: Date: Tue, 3 Mar 2020 16:24:46 +0100 GCC 10 gives the warnings below: In file included from out/ccode32flat.o.tmp.c:54: ./src/tcgbios.c: In function 'tpm20_write_EfiSpecIdEventStruct': ./src/tcgbios.c:290:30: warning: array subscript '() +

[SeaBIOS] Re: [PATCH] std/tcg: Replace zero-length array with flexible-array member

2020-03-03 Thread Philippe Mathieu-Daudé
On Tue, Mar 3, 2020 at 7:08 PM Philippe Mathieu-Daudé wrote: > > Hello Paul, > > On 3/3/20 5:50 PM, Paul Menzel wrote: > > Date: Tue, 3 Mar 2020 16:24:46 +0100 > > > > GCC 10 gives the warnings below: > > > > In file included from out/ccode32flat.o.tmp.c:54: > > ./src/tcgbios.c: In

[SeaBIOS] Re: [PATCH] std/tcg: Replace zero-length array with flexible-array member

2020-03-03 Thread Philippe Mathieu-Daudé
Hello Paul, On 3/3/20 5:50 PM, Paul Menzel wrote: Date: Tue, 3 Mar 2020 16:24:46 +0100 GCC 10 gives the warnings below: In file included from out/ccode32flat.o.tmp.c:54: ./src/tcgbios.c: In function 'tpm20_write_EfiSpecIdEventStruct': ./src/tcgbios.c:290:30: warning: array