test: fix build with gcc 4.8.5
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>
Mon, 7 May 2018 19:12:52 +0000 (14:12 -0500)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 10 May 2018 12:03:35 +0000 (14:03 +0200)
commit3d5b412a1276437c965d5ec9596e5c067c668399
tree80b701789c954f239f6f100b9a1cfee2c4c72b5f
parent4f760550a0935632cf262d6955ac4d25bc260545
test: fix build with gcc 4.8.5

Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
event_timer_adapter_test autotest; the
-Werror=missing-field-initializers option causes the compiler to emit
messages like "error: missing initializer for field ‘priority’ of
‘struct <anonymous>’" in several places.

Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
current syntax if we are using GCC 5.0 or lower.

Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
test/test/Makefile