numam-dpdk/examples/eventdev_pipeline
Thomas Monjalon 785482203f examples/eventdev: fix build with GCC < 5
Some errors were seen with GCC 4.8 and 4.9.
It looks to be a bug fixed in GCC 5.

examples/eventdev_pipeline/pipeline_worker_generic.c:474:4: error:
missing initializer for field 'queue_id' of 'struct <anonymous>'

examples/eventdev_pipeline/pipeline_worker_generic.c:475:3: error:
missing initializer for field 'priority' of 'struct <anonymous>'

examples/eventdev_pipeline/pipeline_worker_tx.c:630:2: error:
missing initializer for field 'queue_id' of 'struct <anonymous>'

The workaround is to not use initializer statement,
but to use memset and standard assignment.

Fixes: 84dde5de10 ("examples/eventdev: support Rx adapter")
Fixes: fa8054c8c8 ("examples/eventdev: add thread safe Tx worker pipeline")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-21 23:40:50 +01:00
..
main.c examples/eventdev: rename example 2018-01-19 16:09:56 +01:00
Makefile examples/eventdev: rename example 2018-01-19 16:09:56 +01:00
pipeline_common.h examples/eventdev: rename example 2018-01-19 16:09:56 +01:00
pipeline_worker_generic.c examples/eventdev: fix build with GCC < 5 2018-01-21 23:40:50 +01:00
pipeline_worker_tx.c examples/eventdev: fix build with GCC < 5 2018-01-21 23:40:50 +01:00