examples/qos_sched: fix build with gcc 10
authorTimothy Redaelli <tredaelli@redhat.com>
Wed, 5 Feb 2020 17:05:46 +0000 (18:05 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 4 Mar 2020 09:25:20 +0000 (10:25 +0100)
commit345187bda58f2685e34a00c7bca917637395aad4
treeda36da4e850294bd4faaf2c39015d90a392b2d97
parent78de15bb586ac3d8938512db1977d83815c494f8
examples/qos_sched: 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: be1e533238c0 ("examples/qos_sched: add TC and queue config flexibility")
Cc: stable@dpdk.org
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: David Marchand <david.marchand@redhat.com>
examples/qos_sched/cfg_file.c
examples/qos_sched/main.h