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

David Marchand david.marchand at redhat.com
Thu May 20 16:31:59 CEST 2021


On Thu, May 20, 2021 at 1:07 PM Kevin Traynor <ktraynor at redhat.com> wrote:
>
> 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 initializing 'a'.
>
> Bugzilla ID: 714
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
>
> Reported-by: Ali Alnubani <alialnu at nvidia.com>
> Signed-off-by: Kevin Traynor <ktraynor at redhat.com>

Reviewed-by: David Marchand <david.marchand at redhat.com>

-- 
David Marchand



More information about the stable mailing list