DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
@ 2018-05-04 21:38 Erik Gabriel Carrillo
  2018-05-05  3:17 ` Jerin Jacob
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Erik Gabriel Carrillo @ 2018-05-04 21:38 UTC (permalink / raw)
  To: jerin.jacob; +Cc: dev

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.

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
---
 test/test/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test/Makefile b/test/test/Makefile
index 2630ab4..2011857 100644
--- a/test/test/Makefile
+++ b/test/test/Makefile
@@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
 # designated initializers.
 ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
 CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
+CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
 endif
 endif
 endif
-- 
2.6.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-12-16 16:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
2018-05-05  3:17 ` Jerin Jacob
2018-05-05  4:55 ` Stephen Hemminger
2018-05-07 18:15   ` Carrillo, Erik G
2018-05-07 19:12 ` [dpdk-dev] [PATCH v2 " Erik Gabriel Carrillo
2018-05-09  9:07   ` Jerin Jacob
2018-12-03 16:21 ` [dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer Erik Gabriel Carrillo
2018-12-03 17:48 ` [dpdk-dev] [PATCH v3] " Erik Gabriel Carrillo
2018-12-16 16:59   ` Jerin Jacob Kollanukkaran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).