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 76B2BA00BE for ; Mon, 20 Dec 2021 12:21:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D14B4003C; Mon, 20 Dec 2021 12:21:05 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 3B6B34003C for ; Mon, 20 Dec 2021 12:21:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639999264; x=1671535264; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KQiVJb4+/UlXDi/yF0t3gIIc2pe5Kjd5wgMCGjKFo78=; b=fiUjYuRYlMjmxBYlmmS1J6mh/EKzFUUVMF4wZWMYHWHucp52e88X0YVI LzCgetODPuXxzk4SHq2KyWTxV9nOFExQvrISW8x1xR3r7cgWN+pxNrIrl 6ldmRR6BqJDQvFzPdCtUXsNW0ff8x98KVql+lRe3sCmFeD8XHBD+AOR7Y VsOz+vukCLUf9XhMRJ1thNQoba2hkPzVIkF4UKMfnhYkg3v49siWkMUct MtVnkph8Rl99cbDBtvoh/OXPhPAS6f1GduweAOsrbpFxOgYMa0pWNrr7H IsomcQ+HMtT+KAfzhQYUz93t5ko64WQAZx6lMz6zwTgzpKoKt9Y5eLtp9 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10203"; a="220157635" X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="220157635" 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:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="520762407" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.118.240]) by orsmga008.jf.intel.com with ESMTP; 20 Dec 2021 03:21:01 -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 , Qiming Yang , Wenzhuo Lu Subject: [PATCH 19.11 v1 3/3] net/ice: build failure with make and clang < 13 Date: Mon, 20 Dec 2021 18:48:05 +0800 Message-Id: <20211220104805.92324-3-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/ice/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile index 370b33af60..9cfd059781 100644 --- a/drivers/net/ice/Makefile +++ b/drivers/net/ice/Makefile @@ -26,7 +26,9 @@ CFLAGS_BASE_DRIVER += else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y) CFLAGS_BASE_DRIVER += -Wno-unused-parameter 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-unused-parameter CFLAGS_BASE_DRIVER += -Wno-unused-variable -- 2.34.1