eal: fix build with -O1
authorThomas Monjalon <thomas@monjalon.net>
Fri, 16 Nov 2018 16:58:50 +0000 (17:58 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Nov 2018 00:43:32 +0000 (01:43 +0100)
commite357e8ebd99c9c394a276fdffd37f13005cb1c63
tree36dcc25151f09a81bd9a32f9a9e54a44f591235e
parent509cc885130abd3953afb602e93e0c13730fe451
eal: fix build with -O1

In case of optimized compilation, RTE_BUILD_BUG_ON use an external
variable which is neither defined, nor used.
It seems not optimized out in case of OPDL compiled with clang -O1:
opdl_ring.c: undefined reference to `RTE_BUILD_BUG_ON_detected_error'
clang-6.0: fatal error: linker command failed with exit code 1

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_eal/common/include/rte_common.h