From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DFB562C6D for ; Mon, 7 May 2018 21:13:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2018 12:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,375,1520924400"; d="scan'208";a="39381985" Received: from txasoft-yocto.an.intel.com (HELO txasoft-yocto.an.intel.com.) ([10.123.72.192]) by orsmga008.jf.intel.com with ESMTP; 07 May 2018 12:13:03 -0700 From: Erik Gabriel Carrillo To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org Date: Mon, 7 May 2018 14:12:52 -0500 Message-Id: <1525720372-1063-1-git-send-email-erik.g.carrillo@intel.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1525469883-8342-1-git-send-email-erik.g.carrillo@intel.com> References: <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 Subject: [dpdk-dev] [PATCH v2 1/1] test: fix build with GCC 4.8.5 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2018 19:13:06 -0000 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. Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") Signed-off-by: Erik Gabriel Carrillo Acked-by: Jerin Jacob --- v2: - Add the 'Fixes' tag. (Jerin) 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