Re: [dpdk-dev] [PATCH] test/prefetch: fix build with GCC 11

2021-05-20 Thread Ali Alnubani
> -Original Message- > From: Kevin Traynor > Sent: Thursday, May 20, 2021 2:06 PM > To: dev@dpdk.org > Cc: ferruh.yi...@intel.com; Kevin Traynor ; > sta...@dpdk.org; Ali Alnubani > Subject: [PATCH] test/prefetch: fix build with GCC 11 > > GCC 11 complains that 'a' is uninitialized. > >

[dpdk-dev] [PATCH] test/prefetch: fix build with GCC 11

2021-05-20 Thread Kevin Traynor
GCC 11 complains that 'a' is uninitialized. ../dpdk/app/test/test_prefetch.c: In function 'test_prefetch': ../dpdk/app/test/test_prefetch.c:25:9: error: 'a' may be used uninitialized [-Werror=maybe-uninitialized] 25 | rte_prefetch0(&a); | ^ Fix by initiali