From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5736DA00BE for ; Mon, 20 Dec 2021 12:21:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EE6140141; Mon, 20 Dec 2021 12:21:02 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 0BF0D40395 for ; Mon, 20 Dec 2021 12:21:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639999261; x=1671535261; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1p8yVaqTKbVJHqkesZPQwnBkFzilJP7A4d1o0NdemaU=; b=gy3X9Nr0pPOSnA50zT59wvKuP0Z0V2QXWZb8HgygppM5GNB+y+bxX+Co 5sNvweaHndogYnPy7fbDXYoZz/2Czd/y+nthQs0b5dZukOCwTlol3mvHX imZISI+yACn/PqSVEwrIQdIUwMAcGk/sHfiPSrR6J+jX+ZHzv36N9Z8N6 38IaM1GFgX3Z039lhPAggXuKZ5lt4BS0AlXvD0yVlUiDibnvnxNdSLEs2 9hihhC/B8Ev5tnBnrznAWZRQmhI83rGirsM+ITjHwZ+rVi2UeH/pjFjvI bY7a6Wsk/Afx/EenmalxKA4ZsnBm1mPCagVE1Wd88ei1RFPtvtAOWkop+ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10203"; a="220157632" X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="220157632" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 03:21:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="520762391" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.118.240]) by orsmga008.jf.intel.com with ESMTP; 20 Dec 2021 03:20:58 -0800 From: Haiyue Wang To: stable@dpdk.org Cc: christian.ehrhardt@canonical.com, yux.jiang@intel.com, qi.z.zhang@intel.com, alialnu@nvidia.com, Haiyue Wang , Beilei Xing Subject: [PATCH 19.11 v1 2/3] net/i40e: build failure with make and clang < 13 Date: Mon, 20 Dec 2021 18:48:04 +0800 Message-Id: <20211220104805.92324-2-haiyue.wang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211220104805.92324-1-haiyue.wang@intel.com> References: <20211220104805.92324-1-haiyue.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Check the clang version before enabling '-Wno-unused-but-set-variable', otherwise it will have "error: unknown warning option". https://reviews.llvm.org/D100581 Bugzilla ID: 913 Signed-off-by: Haiyue Wang --- drivers/net/i40e/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile index d6ced28f3d..3f7565fbd6 100644 --- a/drivers/net/i40e/Makefile +++ b/drivers/net/i40e/Makefile @@ -35,7 +35,9 @@ CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast CFLAGS_BASE_DRIVER += -Wno-format-nonliteral CFLAGS_BASE_DRIVER += -Wno-unused-variable +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 13 && echo 1), 1) CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable +endif else CFLAGS_BASE_DRIVER = -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-unused-value -- 2.34.1