examples/eventdev: fix build with gcc 10
authorTimothy Redaelli <tredaelli@redhat.com>
Wed, 5 Feb 2020 17:05:45 +0000 (18:05 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 4 Mar 2020 09:24:51 +0000 (10:24 +0100)
commit78de15bb586ac3d8938512db1977d83815c494f8
tree084c897686741981ff47ef7d5fec2b25930c0251
parentbe848992298b7a64a161487600a4070e52b9d26d
examples/eventdev: fix build with gcc 10

GCC 10 defaults to -fno-common, this means a linker error will now be
reported if the same global variable is defined in more than one
compilation unit.

Fixes: 3d1b33e44ae2 ("examples/eventdev: move common data into pipeline common")
Cc: stable@dpdk.org
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
examples/eventdev_pipeline/main.c
examples/eventdev_pipeline/pipeline_common.h