From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 12B98B62 for ; Sat, 5 May 2018 06:55:06 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id q22so18925733pff.11 for ; Fri, 04 May 2018 21:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DSq9FOdO9K2YKsNSMQCf5Xkyh5mLmghCNWt8WGz+oiU=; b=JoE7AXemo0Sb2rD1GEMZtWrPErqsi2UjsAB+yIjWkUNonRoU0F0bQU1FKRn1XGr/m5 G138m4iNNAyP5/Z/Z9b3gCHSM4A4GQrlZES5bD1z70GKnFpyrUvkXVYDfBJXsK/1F66z KtsVXhZli3YtaDhmnIPYtAtLkEFUGTkE90bbTvru3RMsh2kNMapsSIBQ4vW+hGEKeb6W bO2TQdAoYxCsTPeZlXUPUr0KTOaKe2xEAsABtvCFZ3cdZRo1C2HDbEzsdZMlex77FfgV Kothh/1IN8nIHfeVUyhENGqO5clKirursBg2pq22xLvQRfTHjmtahK8FtpG2PxNzWnc2 k4UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DSq9FOdO9K2YKsNSMQCf5Xkyh5mLmghCNWt8WGz+oiU=; b=aL8wp8w4eaon9he39EJdNGOqatlvpOgWL2r/6kSZa5erM59/nGPjISDPAMtp9S0p0J vCdGxNpOyU0Eo14mLHjPTDgZsRUXiXtSWVpbJekSbNowzR7mNoubWNMqdYt61lOjshVZ SOfvHQDOwW0hBNyPRvQXW4OBkbOOxinuljRP7Up1ZkVJhlQGovmtkyOfaXDEitPVVSpN lQa0+VLMy8AnVskeA4cOqfDXbSyXSCTYRUD6UEPEEhJWrxywMcR70OfodL21gx5W0qBj AK0NUd8BB0JnPjrCFtRIOP13Ex6KXAVwM4VC/vLiwiz1UEvqmrvQ52TqjiPeMO3rzDif Jq/g== X-Gm-Message-State: ALQs6tAZP3fgL9Chwa+a/HrwSwBwRNRoMhzat6o9Rgl3Otqa6YYOIrUS m3D67YRZRD9eStAeO4yhkSImYQ== X-Google-Smtp-Source: AB8JxZrSzWTqNJy+Zq1QzL+RjHFS+serR/VcD70A9vbl3CN/hmSRSCIe85nErIKrb+mc95O8s+muVw== X-Received: by 2002:a17:902:d20a:: with SMTP id t10-v6mr30228464ply.364.1525496105126; Fri, 04 May 2018 21:55:05 -0700 (PDT) Received: from xeon-e3 (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id 23sm61973250pfs.147.2018.05.04.21.55.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 May 2018 21:55:05 -0700 (PDT) Date: Fri, 4 May 2018 21:55:01 -0700 From: Stephen Hemminger To: Erik Gabriel Carrillo Cc: jerin.jacob@caviumnetworks.com, dev@dpdk.org Message-ID: <20180504215501.3dd511a8@xeon-e3> 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: quoted-printable Subject: Re: [dpdk-dev] [PATCH v1 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: Sat, 05 May 2018 04:55:06 -0000 On Fri, 4 May 2018 16:38:03 -0500 Erik Gabriel Carrillo wrote: > Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the > event_timer_adapter_test autotest; the > -Werror=3Dmissing-field-initializers option causes the compiler to emit > messages like "error: missing initializer for field =E2=80=98priority=E2= =80=99 of > =E2=80=98struct =E2=80=99" in several places. >=20 > Add -Wno-missing-field-initializers to the test's CFLAGS to allow the > current syntax if we are using GCC 5.0 or lower. >=20 > Signed-off-by: Erik Gabriel Carrillo > --- > test/test/Makefile | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 +=3D -fno-var-tracking-assi= gnments > # designated initializers. > ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1) > CFLAGS_test_eventdev_sw.o +=3D -Wno-missing-field-initializers > +CFLAGS_test_event_timer_adapter.o +=3D -Wno-missing-field-initializers > endif > endif > endif Why not fix the code rather than supressing the warning??