Zero length arrays are a GNU extension that has been superseded by flex arrays.
https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html These are places found by cocci/zero_length_array.cocci v2 - rebased on 23.11-rc3 more places started using zero length array Stephen Hemminger (10): member: replace zero length array with flex array cryptodev: replace zero length array with flex array security: replace zero length array with flex array pipeline: replace zero length array with flex array net/nfp: replace zero length array with flex array net/enic: replace zero length array with flex array net/mlx5: replace zero length array with flex array pdcp: replace zero length array with flex array net/cpfl: replace zero length array with flex array common/dpaxx: replace zero length array with flex array drivers/common/dpaax/caamflib/desc/ipsec.h | 2 +- drivers/common/mlx5/mlx5_prm.h | 2 +- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +- drivers/net/enic/base/vnic_devcmd.h | 2 +- drivers/net/mlx5/mlx5.h | 4 ++-- drivers/net/mlx5/mlx5_flow.h | 2 +- drivers/net/mlx5/mlx5_tx.h | 2 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +- lib/cryptodev/cryptodev_pmd.h | 2 +- lib/member/rte_member_heap.h | 2 +- lib/pdcp/pdcp_entity.h | 2 +- lib/pipeline/rte_swx_pipeline_internal.h | 2 +- lib/security/rte_security_driver.h | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) -- 2.42.0