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 34A90A00BE for ; Mon, 20 Dec 2021 12:21:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BD864003C; Mon, 20 Dec 2021 12:21:00 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 7925C4003C for ; Mon, 20 Dec 2021 12:20:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639999259; x=1671535259; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=87VdlD5uyvLt+ASo8Ul1aJ2VSIpl70O3hbCyR3mILdk=; b=hMYVrERX/QdgnJpuXKQ3JPgjcMBALalOCvq4O11Urr++E3WRZigX1IcE 9sdDJd+1CRKtV0tIUAzmiMz07MUjn4EHAAtW4mqEbV+dZ9Ow/FuX5gh1l oWm9Cp6MMW+VCa9dw7zji+pK9VN6T/Vr3gqqUWR2I7w/bDv/jvwRIIaqO oxNYYv8/5MYQlCD04QUksWmvtmMRbnJ+i/os3fwSA/5T8zjbd7neB5tdk w4LtICmwuGCGdBjfMh5lVc10oSjFXUOc/bAx0rCHXJEVg7a+kPaBaPzvo YRoe5iopLbh0HscYObIPMgtx7JoiknBFZbK6Pm8SzkCxKkX0It4wuNugf w==; X-IronPort-AV: E=McAfee;i="6200,9189,10203"; a="220157628" X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="220157628" 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:20:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="520762378" 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:55 -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 , Wenzhuo Lu , Konstantin Ananyev Subject: [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang < 13 Date: Mon, 20 Dec 2021 18:48:03 +0800 Message-Id: <20211220104805.92324-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.34.1 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/ixgbe/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index 31a418a2c6..c730bbddb4 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -29,7 +29,9 @@ else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y) # CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args +ifeq ($(shell test $(CLANG_MAJOR_VERSION) -ge 13 && echo 1), 1) CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable +endif else # -- 2.34.1