From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1AE14A046B for ; Mon, 22 Jul 2019 14:40:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D7B911BF37; Mon, 22 Jul 2019 14:40:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1C1951BF21 for ; Mon, 22 Jul 2019 14:40:52 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6MCR7Kb014162; Mon, 22 Jul 2019 05:40:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=upG/kIXSLNrVpOTSaSDIE0gZadJzfIpe08AWO+bsDOk=; b=edg3d3LAEfIdhUm9xKb4bKlONcVhsXhBNjIPd9KtXdPB1nHMBTTtR6/vxS65CMKCdmcz hRzGlOsKKnzM6VjJEUv/PodCvqO96sGokLhDcYAdtvvhhG/msN+C+va9KkcaexfCzaMl VHz0RKNKnaxCWniLNtnwOGgos/lFAEiFd1trLnjl61ZgpESPyfhf2AKQjJHBtIDCPWIt SVcVi1zXnkoi6ycG4k2aQV5uaZhaafRyvfAGAf7ohesH1eX8iJY2CfCbr6zUqOgFycgo HoukT5qdG+kJXgHZlM7aBtF/12tP7hKOU46ZLtWeIyfZ8HhauRbyfXLOS0iRw1PKaDU7 kA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2tv2fj6cgx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 22 Jul 2019 05:40:51 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 22 Jul 2019 05:40:49 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 22 Jul 2019 05:40:49 -0700 Received: from kk-box-0.marvell.com (unknown [10.95.131.152]) by maili.marvell.com (Postfix) with ESMTP id 4E4BA3F703F; Mon, 22 Jul 2019 05:40:48 -0700 (PDT) From: To: , Thomas Monjalon CC: Krzysztof Kanas , Date: Mon, 22 Jul 2019 14:39:59 +0200 Message-ID: <20190722123959.29703-1-kkanas@marvell.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-22_10:2019-07-22,2019-07-22 signatures=0 Subject: [dpdk-dev] [PATCH] mk: disable flag for no packet member warning 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Krzysztof Kanas gcc prior 9 don't will add additional warning for unrecognized command line option, but only when there is some other warning in the code, e.g unused variable. Fixes: a385972c3675 ("mk: disable warning for packed member pointer") Cc: reshma.pattan@intel.com Signed-off-by: Krzysztof Kanas --- mk/toolchain/gcc/rte.vars.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index b852fcfd7e24..1bd384f7ca3f 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -88,7 +88,9 @@ WERROR_FLAGS += -Wno-format-truncation endif # disable packed member unalign warnings +ifeq ($(shell test $(HOST_GCC_VERSION) -gt 90 && echo 1), 1) WERROR_FLAGS += -Wno-address-of-packed-member +endif export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS -- 2.21.0