As of 5ef3b79fdfe6f, compilation of DPDK fails with the following error message: "bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]".
Resolve this by initializing 'vnic' to NULL; Fixes: 5ef3b79fdfe6f ("net/bnxt: support flow filter ops") CC: sta...@dpdk.org Signed-off-by: Mark Kavanagh <mark.b.kavan...@intel.com> --- drivers/net/bnxt/bnxt_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c index d470be2..9f171fd 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -906,7 +906,7 @@ struct bnxt_filter_info * { struct bnxt *bp = (struct bnxt *)dev->data->dev_private; struct bnxt_filter_info *filter; - struct bnxt_vnic_info *vnic; + struct bnxt_vnic_info *vnic = NULL; struct rte_flow *flow; unsigned int i; int ret = 0; -- 1.9.3