pipeline: fix build with GCC 4.8.5
authorAli Alnubani <alialnu@nvidia.com>
Wed, 21 Apr 2021 10:06:38 +0000 (13:06 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 10:36:17 +0000 (12:36 +0200)
commitfe4b8c7bcdba8c81b77e5c28b0b55c5a6653a3c6
tree5732f2a61a2abbc6218150fd406817856e635b31
parent631217c761353aa5e4e548a20e570245ecbc8eda
pipeline: fix build with GCC 4.8.5

Compilation on CentOS 7 with gcc version 4.8.5 fails with
the following errors:
error: 'src_struct_id' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
error: 'dst_struct_id' may be used uninitialized in this
function [-Werror=maybe-uninitialized]

This patch fixes the build errors by initializing both variables.

Bugzilla ID: 683
Fixes: 783768136f29 ("pipeline: auto-detect endianness of action arguments")

Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
lib/librte_pipeline/rte_swx_pipeline.c