Re: [dpdk-dev] [PATCH] net/mlx5: fix compiling issue of zero-size array

2018-10-14 Thread Shahaf Shuler
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 stru

[dpdk-dev] [PATCH] net/mlx5: fix compiling issue of zero-size array

2018-10-14 Thread Jack Min
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 ques