From patchwork Wed Oct 30 17:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147752 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE64645C17; Wed, 30 Oct 2024 18:38:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF6F44346B; Wed, 30 Oct 2024 18:38:42 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id C07C44025F for ; Wed, 30 Oct 2024 18:38:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309919; x=1761845919; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EnwOIQ3jcDE9fTzPK40Uh9yIyF/4NVEJyRs3GMyCYYA=; b=NAbQo7neMYLv7zb7MOkU/DVDwN6Bz+k2kFuvblN8NIdGAOnsJW9H+xpZ YdHaYLIqBnKVtuJkZ6S8ouBysEl5Fq8+kQwhA6ZKqKXnqPzWnMsfc6WT8 VdvBi5Cuq0mpFvpzWk9Yj52DHCGJvfmd0+zr2qrrK/Hr139sGNHYNkGIn VN1AWFl1A8mJv87gpBp+d7MQ4cCiUCqGg71FgjGAr2U08qOAEBhqQB/kz XbeloW1kgOeughxfdOircmBzgIFmh+IhwVHZdTXtjm/z/K4ZPXsN8pSSh lgiBl84xsCguqim/yUvJYjT9eluJHme9QCIu17+NyxOzbgAr2vruSppFV w==; X-CSE-ConnectionGUID: C6egMCS8Rf2uupdJWo0HYQ== X-CSE-MsgGUID: 5zggjiM2R8uIsp3ODytb1Q== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430702" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430702" 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:37 -0700 X-CSE-ConnectionGUID: Znx4bCzmTOme+ol50onfcA== X-CSE-MsgGUID: sPyRWVyrQRulLfhkhE7JKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324583" 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:36 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , David Marchand Subject: [PATCH 1/6] net/i40e/base: remove warning disable flags Date: Wed, 30 Oct 2024 17:38:24 +0000 Message-ID: <20241030173830.881368-2-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 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 The i40e base code driver has a number of unnecessary warning disabling flags. We can remove three flags warning about variable format errors. In the process, simplify the list to one flag per line. Suggested-by: David Marchand Signed-off-by: Bruce Richardson --- drivers/net/i40e/base/meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/base/meson.build b/drivers/net/i40e/base/meson.build index d94108629b..a0912b1788 100644 --- a/drivers/net/i40e/base/meson.build +++ b/drivers/net/i40e/base/meson.build @@ -11,10 +11,11 @@ sources = [ 'i40e_nvm.c', ] -error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', - '-Wno-format', '-Wno-format-security', - '-Wno-format-nonliteral', - '-Wno-strict-aliasing', '-Wno-unused-but-set-variable', +error_cflags = [ + '-Wno-sign-compare', + '-Wno-unused-value', + '-Wno-strict-aliasing', + '-Wno-unused-but-set-variable', '-Wno-unused-parameter', ] c_args = cflags From patchwork Wed Oct 30 17:38:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147753 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 68D1D45C17; Wed, 30 Oct 2024 18:38:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E102C4346E; Wed, 30 Oct 2024 18:38:43 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 7D9C64025F for ; Wed, 30 Oct 2024 18:38:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309919; x=1761845919; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D03rlA7C1CIP8jrjaFz979oVTQHwjxMY2Q1ve1dClY0=; b=L2IufmyUil+pTgId8FsNPrJ6t+4unmEsNtESIfxV1wO2t7WmUQ87hisE +L4n35fuv4Z6QXDkw/T9kitYh31ORaeULD396cPDRFvY2fIeOWyhuOVFD 4tyZ73AHwo3V1tddTC8vIY0cyvbVyJbLD1FrOCuDOjn7cyOwMsK2Hsku9 oOVH5FA0kHXlddUHqt8RPaV3qF00YoIqF2WlGZp+Wr0+L71Zuj1Zln6NX QzedKU+IE5GIwsge3QdVmeCONjCaMXcezYmWyQYBjx8sPCI6MT1qIUwoP 8zrt+/H/u8FWED0/3E4dyuOTr5bYMoJjKfTU9ckZHow7yUyxMhmBU3muY A==; X-CSE-ConnectionGUID: ZW/HnQTmR0We+NJ9ewsh5Q== X-CSE-MsgGUID: uCJc5dVaSbiArmDsnXSJnw== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430710" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430710" 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:38 -0700 X-CSE-ConnectionGUID: lSCkpCDgSHiEi82HeaezRQ== X-CSE-MsgGUID: leuozgceRbOKNQnbn+KaGQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324587" 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:37 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 2/6] net/ice/base: remove warning disable flag Date: Wed, 30 Oct 2024 17:38:25 +0000 Message-ID: <20241030173830.881368-3-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 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 The -Wno-unused-value flag is not needed for building the base code, so remove that flag from the list of warnings to disable. Signed-off-by: Bruce Richardson --- drivers/net/ice/base/meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ice/base/meson.build b/drivers/net/ice/base/meson.build index 38ddde9e8c..addb922ac9 100644 --- a/drivers/net/ice/base/meson.build +++ b/drivers/net/ice/base/meson.build @@ -32,7 +32,6 @@ sources = [ ] error_cflags = [ - '-Wno-unused-value', '-Wno-unused-but-set-variable', '-Wno-unused-variable', '-Wno-unused-parameter', From patchwork Wed Oct 30 17:38:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147754 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0583745C17; Wed, 30 Oct 2024 18:38:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0136443473; Wed, 30 Oct 2024 18:38:45 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 5441543467 for ; Wed, 30 Oct 2024 18:38:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309920; x=1761845920; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Med8U9lsX859hBHCinsgEzzzwTUPqE/0gSZbhTeU0cQ=; b=kQsqNSifHdwJiE2aKb3lPdldchHXKvwUfHr6RQFE5itDWwgbFcEBaQSC 6UKW7Wel2aAx+ZHOYMcRUBlbvHGodlbkS2t3KxB1TliEOLWpcB32o+UBk n/3WvjKFWjJ/AadKDBRSiPPde2cn+06E9hX2zpdGM/x/LdbvqUBpkt3jt y+Fn18k4ah4LSdGXp8VJ7mOyI33JnwB8vX+FfqlR6aT8/XX/RusgQ8CMZ 6fe6MoESv9Zk1SaiHxBd4svz+ZlKl6yN+avD6UcKuKDn8fcwU6WvV0YZp ujAlvvyuOKc1tSAUo+5rYuLiLmS1d73rwnds9+bgfJdJmiqdS2ekomZd6 A==; X-CSE-ConnectionGUID: N6m3HTRzQRO5wd+lqWNHAw== X-CSE-MsgGUID: IZSjYiuyT3ON04yNso6Q5w== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430717" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430717" 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:39 -0700 X-CSE-ConnectionGUID: IK9l/nvkRTSHTR23XHgFCQ== X-CSE-MsgGUID: JXsTWZtTSbqFtNtYIajJlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324590" 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:38 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 3/6] net/e1000/base: remove warning disable flags Date: Wed, 30 Oct 2024 17:38:26 +0000 Message-ID: <20241030173830.881368-4-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 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 Not all the flags for disabling warnings on the base code are needed, so remove the unnecessary ones. Signed-off-by: Bruce Richardson --- drivers/net/e1000/base/meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/e1000/base/meson.build b/drivers/net/e1000/base/meson.build index 528a33f958..158badce43 100644 --- a/drivers/net/e1000/base/meson.build +++ b/drivers/net/e1000/base/meson.build @@ -22,9 +22,10 @@ sources = [ 'e1000_vf.c', ] -error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', - '-Wno-unused-variable', '-Wno-misleading-indentation', - '-Wno-implicit-fallthrough'] +error_cflags = [ + '-Wno-unused-parameter', + '-Wno-implicit-fallthrough' +] c_args = cflags foreach flag: error_cflags if cc.has_argument(flag) From patchwork Wed Oct 30 17:38:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147755 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D930B45C17; Wed, 30 Oct 2024 18:39:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14C7E4347A; Wed, 30 Oct 2024 18:38:46 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 5C25C43467 for ; Wed, 30 Oct 2024 18:38:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309921; x=1761845921; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BbiScKjawZdjnrtw3cjSfq6ctAGvfVTWMc93N+Ye7yo=; b=JauWgK17ZavFgxTMezJKdT669g+WdlyBaEGHh2wjT5tQJWTuOOPueeM2 Wkwzouk986mkYCUvhVRXsFelDVUyZD/PHXIqetlXHyNkRcup9fd422KWF +jEJwO1/SWUHZpvkQtl8Y5HPaU3kECOuqKUGsfD3hvfnamacZbrlebrGc 4imwLZg7gUv1Isps9ejQ+jTZ/g7X0UaRbBA9VVuimWWZfcCvEmBjLy3b9 7duLQJz8XQo0grZ3j91mqK4ee2vv+2VzTstWSAW1/s5685xabIMwYEsR5 yfQ96Xs0kgYtX6qOlxlZM1TlX0ph/NNQvM75vMkzGCVvWoP9rfj1p3Rk+ Q==; X-CSE-ConnectionGUID: TZtQzWUSSUKX3DXeY8V4ww== X-CSE-MsgGUID: HUV+6M3YSMCmq7uwm1L15Q== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430725" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430725" 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:40 -0700 X-CSE-ConnectionGUID: dGA5poAwTZGodSfv/VNDUg== X-CSE-MsgGUID: leCPp5Q3RU2vO7doyXhspA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324593" 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:39 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 4/6] net/iavf: remove warning disable flag Date: Wed, 30 Oct 2024 17:38:27 +0000 Message-ID: <20241030173830.881368-5-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 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 The no-strict-aliasing flag is not needed for the iavf build so remove it. Signed-off-by: Bruce Richardson --- drivers/net/iavf/meson.build | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/iavf/meson.build b/drivers/net/iavf/meson.build index 27d104cc12..b48bb83438 100644 --- a/drivers/net/iavf/meson.build +++ b/drivers/net/iavf/meson.build @@ -5,8 +5,6 @@ if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 subdir_done() endif -cflags += ['-Wno-strict-aliasing'] - includes += include_directories('../../common/iavf') testpmd_sources = files('iavf_testpmd.c') From patchwork Wed Oct 30 17:38:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147756 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 41C4945C17; Wed, 30 Oct 2024 18:39:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E8E043482; Wed, 30 Oct 2024 18:38:47 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 2053943467 for ; Wed, 30 Oct 2024 18:38:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730309922; x=1761845922; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XdtEpSbopxyB9CofcBS1doC6a17pZUQ658hjTBhOE98=; b=RBDSR4PD9rGvMJA2ecJrywMpKnPbKwm5QPaQzKhCuFzsSjTgg65f9H01 Wz6/nLaALQmSh6bBvQO71YDk4YLZndIsyneRY8K6kNmBAKumcLtR2wC67 FdlKHSW9JQiA8E4RVMJK8VWsICQIBuzi0q2vdSuCIkjz4ScNNrQXZshdO ES4lJC3T3oIt9tRlWp3z09slbkBPFXSl9pwWw2ZJDOTHYeQi38MBDNa84 +le6kHrB+y+SvhYvhMs+1TQLGhc2c+FUD2iNw93NKMnQu2J8xqmUoqtu7 m99o7GUyZw3VZQ4dBSTb40oGOCJxusyforHA9Ct0/Q1+j+g+MUnasS8Wr w==; X-CSE-ConnectionGUID: qJI7Yv7pQeinEkhDYe6zzg== X-CSE-MsgGUID: r51R3EolRSSpJkPpT5ekXQ== X-IronPort-AV: E=McAfee;i="6700,10204,11241"; a="55430733" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="55430733" 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:40 -0700 X-CSE-ConnectionGUID: 82fjsRxjRG6AXUaTiDxmRQ== X-CSE-MsgGUID: I7p+xkMfSfWVKZueQZwj1w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="86324596" 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 5/6] net/fm10k/base: remove warning disable flags Date: Wed, 30 Oct 2024 17:38:28 +0000 Message-ID: <20241030173830.881368-6-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 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 Not all the warning disable flags on the base code are necessary, so reduce the list to only those needed. Signed-off-by: Bruce Richardson --- drivers/net/fm10k/base/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm10k/base/meson.build b/drivers/net/fm10k/base/meson.build index bd19df27f7..666733b25a 100644 --- a/drivers/net/fm10k/base/meson.build +++ b/drivers/net/fm10k/base/meson.build @@ -10,9 +10,9 @@ sources = [ 'fm10k_vf.c', ] -error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', - '-Wno-strict-aliasing', '-Wno-format-extra-args', - '-Wno-unused-variable', +error_cflags = [ + '-Wno-unused-parameter', + '-Wno-unused-value', '-Wno-implicit-fallthrough' ] c_args = cflags From patchwork Wed Oct 30 17:38:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 147757 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 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