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

Message ID 1525857017-29590-1-git-send-email-radu.nicolau@intel.com (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Radu Nicolau May 9, 2018, 9:10 a.m. UTC
  Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
Cc: stable@dpdk.org

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

Comments

Jerin Jacob May 9, 2018, 9:31 a.m. UTC | #1
-----Original Message-----
> Date: Wed, 9 May 2018 10:10:17 +0100
> From: Radu Nicolau <radu.nicolau@intel.com>
> To: dev@dpdk.org
> CC: erik.g.carrillo@intel.com, Jerin.JacobKollanukkaran@cavium.com, Radu
>  Nicolau <radu.nicolau@intel.com>, stable@dpdk.org
> Subject: [PATCH] test: fix gcc 4.8 build issue
> X-Mailer: git-send-email 2.7.5
> 
> Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
> Cc: stable@dpdk.org

Similar patch already applied

http://dpdk.org/dev/patchwork/patch/39428/

> 
> Signed-off-by: Radu Nicolau <radu.nicolau@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
>
  

Patch

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