[PATCH v4 10/10] common/dpaxx: remove zero length array
Stephen Hemminger
stephen at networkplumber.org
Tue Nov 21 17:46:41 CET 2023
On Tue, 21 Nov 2023 10:49:59 +0000
Hemant Agrawal <hemant.agrawal at nxp.com> wrote:
> > struct ipsec_encap_pdb {
> > uint32_t options;
> > @@ -350,7 +349,6 @@ struct ipsec_encap_pdb {
> > };
> > uint32_t spi;
> > uint32_t ip_hdr_len;
> > - uint8_t ip_hdr[0];
> [Hemant] This should be replaced with
> uint8_t ip_hdr[];
> > };
> >
That won't work because the structure is embedded in
another struct and then clang will correctly report an error.
More information about the dev
mailing list