<jer...@marvell.com> writes: > From: Jerin Jacob <jer...@marvell.com> > > Some compilers reporting the following error, though the existing > code doesn't have any uninitialized variable case. > Just to make compiler happy, initialize the int32x4_t variable > one shot in C language. > > ../lib/librte_acl/acl_run_neon.h: In function 'search_neon_4' > ../lib/librte_acl/acl_run_neon.h:230:12: error: 'input' may be > used uninitialized in this function [-Werror=maybe-uninitialized] > int32x4_t input; > > Fixes: 34fa6c27c156 ("acl: add NEON optimization for ARMv8") > Cc: sta...@dpdk.org > > Signed-off-by: Jerin Jacob <jer...@marvell.com> > ---
This pattern is easy to understand, congruent with other usages in the code base, has good patch statistics, and solves the issue. Acked-by: Aaron Conole <acon...@redhat.com> I prefer this solution to the others posted. Thanks for looking into it, Jerin!