From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Gabriel Carrillo Subject: [PATCH v1 1/1] test: fix build with GCC 4.8.5 Date: Fri, 4 May 2018 16:38:03 -0500 Message-ID: <1525469883-8342-1-git-send-email-erik.g.carrillo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: jerin.jacob@caviumnetworks.com Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E68481E35 for ; Fri, 4 May 2018 23:38:07 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "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 ’" 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 --- 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