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 016EC45C17; Wed, 30 Oct 2024 18:39:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0ED74348D; Wed, 30 Oct 2024 18:38:48 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id A937A43468 for ; Wed, 30 Oct 2024 18:38:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309923; x=1761845923; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Pm29ke+7rtK65bwtb+ITUoAi79Wfk6fKemW95QxyqXk=; b=Y89X4nTXx8yCNFnMwEkyQSHh7oPHt2Ld46Xr6AkvHvirSeVhevhEpFof 8v3kuxvilEygm0Zn8lsXVLttKytq2HQ230klDc0Z8GEULKkIrSV3RkNeH /hwcjDQtUuiPVRetcDfYBlQFuuGxbG5ot38vQW5wlS2Dny+gDRNGglNqe ojatokHoxA4+DG7sS+vEEGbI/tJ32f0EefODjEK9nXE5EPpsnuAVnjtiJ bX1WUQRU9vm3ABdlaiIOTjKJQDNi71ff/dXbeIMynI9if28IdC4TRuKbr EF9Jsf0WwIK/3oTfh4PzsgqTxvNdnFvFfgDdasvEyuTgT5i7tHZHAc/JR Q==; X-CSE-ConnectionGUID: 0YD5Tu8ZTcaqJgZDnAEQsw== X-CSE-MsgGUID: VNHNM/ejS2qbjjWmHM9sUg== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430738" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430738" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 10:38:41 -0700 X-CSE-ConnectionGUID: E9uLZRqwTZiisLaJ9+KERQ== X-CSE-MsgGUID: JwdVVQgnRdKJi4sbsdbNDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324600" Received: from silpixa00400496-oob.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.43]) by fmviesa003.fm.intel.com with ESMTP; 30 Oct 2024 10:38:40 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 6/6] common/idpf/base: remove warning disable flags Date: Wed, 30 Oct 2024 17:38:29 +0000 Message-ID: <20241030173830.881368-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030173830.881368-1-bruce.richardson@intel.com> References: <20241030173830.881368-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove unnecessary warning disable flags, and for the remaining flag implement a compiler-check for it before adding it to the cflags. Signed-off-by: Bruce Richardson --- drivers/common/idpf/base/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/common/idpf/base/meson.build b/drivers/common/idpf/base/meson.build index 649c44d0ae..7056352a67 100644 --- a/drivers/common/idpf/base/meson.build +++ b/drivers/common/idpf/base/meson.build @@ -6,8 +6,11 @@ sources += files( 'idpf_controlq_setup.c', ) -cflags += ['-Wno-unused-value'] -cflags += ['-Wno-unused-variable'] -cflags += ['-Wno-unused-parameter'] -cflags += ['-Wno-implicit-fallthrough'] -cflags += ['-Wno-strict-aliasing'] +error_cflags = [ + '-Wno-unused-variable' +] +foreach flag: error_cflags + if cc.has_argument(flag) + cflags += flag + endif +endforeach -- 2.43.0