[dpdk-dev] [PATCH] net/mlx5: fix compiling issue of zero-size array
Shahaf Shuler
shahafs at mellanox.com
Mon Oct 15 07:41:21 CEST 2018
Monday, October 15, 2018 4:45 AM, Jack Min:
> Subject: [PATCH] net/mlx5: fix compiling issue of zero-size array
>
> If the build environment hasn't 'linux/tc_act/tc_pedit.h', compiler will use
> needed structs defined in mlx5_flow_tcf.c.
>
> However, there is a zero-size array defined in one struct and ISO C forbids
> this when -Wpedantic is set by debug mode.
>
> Simply put __extension__ keyword before the struct in question.
>
> Fixes: e696b2051c8c ("net/mlx5: rewrite IP address UDP/TCP port by E-
> Switch")
>
> Signed-off-by: Xiaoyu Min <jackmin at mellanox.com>
Applied to next-net-mlx, thanks.
Ferruh, you will probably want to squash this to the relevant commit.
More information about the dev
mailing list