[dpdk-dev] [PATCH] test: fix gcc 4.8 build issue

Radu Nicolau radu.nicolau at intel.com
Wed May 9 11:10:17 CEST 2018


Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
Cc: stable at dpdk.org

Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
---
 test/test/test_event_timer_adapter.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/test/test_event_timer_adapter.c b/test/test/test_event_timer_adapter.c
index 93471db..7336a96 100644
--- a/test/test/test_event_timer_adapter.c
+++ b/test/test/test_event_timer_adapter.c
@@ -22,6 +22,10 @@
 
 #include "test.h"
 
+#ifndef __INTEL_COMPILER
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
+
 /* 4K timers corresponds to sw evdev max inflight events */
 #define MAX_TIMERS  (4 * 1024)
 #define BKT_TCK_NSEC
-- 
2.7.5



More information about the dev mailing list