04/10/2022 13:21, Thomas Monjalon: > 04/10/2022 13:17, Thomas Monjalon: > > When compiling with MinGW GCC 12, > > the rte_flow_item array is seen as read out of bound: > > > > net/i40e/i40e_hash.c:389:47: error: > > array subscript 50 is above array bounds of ‘const uint64_t[50]’ > > {aka ‘const long long unsigned int[50]’} [-Werror=array-bounds] > > 389 | item_hdr = pattern_item_header[last_item_type]; > > | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ > > > > It seems the assert check done above this line has no impact. > > A check is added to make the compiler happy. > > We could add those lines as the real issue is the item array: > > Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") > Cc: sta...@dpdk.org > > > Signed-off-by: Thomas Monjalon <tho...@monjalon.net>
A similar patch was sent 6 weeks ago by Amit Prakash Shukla.