[dpdk-dev] [PATCH 2/2] examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning
Akhil Goyal
akhil.goyal at nxp.com
Wed Feb 26 07:12:44 CET 2020
>
> gcc 10.0.1 reports:
>
> ../examples/ipsec-secgw/ipsec_process.c: In function ‘ipsec_process’:
> ../examples/ipsec-secgw/ipsec_process.c:132:34:
> error: ‘grp.m’ may be used uninitialized in this function [-Werror=maybe-
> uninitialized]
> 132 | grp[n].cnt = pkts + i - grp[n].m;
> | ~~~~~~^~
>
> Fix by initializing the array.
>
> Fixes: 3e5f4625dc17 ("examples/ipsec-secgw: make data-path to use IPsec
> library")
> Cc: stable at dpdk.org
>
> Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
> ---
> note, commit log violates line length but I didn't want to split warning msg.
>
> Cc: konstantin.ananyev at intel.com
> Cc: Radu Nicolau <radu.nicolau at intel.com>
> Cc: Akhil Goyal <akhil.goyal at nxp.com>
> ---
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
More information about the dev
mailing list