From patchwork Sat Dec 5 01:10:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kadam, Pallavi" X-Patchwork-Id: 84769 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5E408A09E4; Sat, 5 Dec 2020 02:21:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 466834C98; Sat, 5 Dec 2020 02:21:13 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 20BA32C6E for ; Sat, 5 Dec 2020 02:21:10 +0100 (CET) IronPort-SDR: fuigwYbIJSVBj0j5NUKJee7eUCCO8jfyALiHxkrmEpfSwFsa7DQVTUfOygH/onv2kRBcUCDJ8R HC9lBzXFCTmA== X-IronPort-AV: E=McAfee;i="6000,8403,9825"; a="160530096" X-IronPort-AV: E=Sophos;i="5.78,394,1599548400"; d="scan'208";a="160530096" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2020 17:20:58 -0800 IronPort-SDR: jWF4KMmnQfKXUkThfpJs2dn9tdz061Ezmio1d0vD2bFW/2TpUw30MM9gbmdkrlzVfWCEMGC0nc NiSNOG3qe9lQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,394,1599548400"; d="scan'208";a="317133384" Received: from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain) ([10.166.188.111]) by fmsmga007.fm.intel.com with ESMTP; 04 Dec 2020 17:20:58 -0800 From: Pallavi Kadam To: dev@dpdk.org, thomas@monjalon.net Cc: ranjit.menon@intel.com, dmitry.kozliuk@gmail.com, Narcisa.Vasile@microsoft.com, talshn@nvidia.com, ferruh.yigit@intel.com, beilei.xing@intel.com, jia.guo@intel.com, pallavi.kadam@intel.com Date: Fri, 4 Dec 2020 17:10:20 -0800 Message-Id: <20201205011020.6276-4-pallavi.kadam@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20201205011020.6276-1-pallavi.kadam@intel.com> References: <20201205011020.6276-1-pallavi.kadam@intel.com> Subject: [dpdk-dev] [PATCH 3/3] config/build: ignore enum forward reference warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Warning generated using Clang compiler: ..\drivers\net\i40e\base/i40e_osdep.h:34:14: warning: forward references to 'enum' types are a Microsoft extension [-Wmicrosoft-enum-forward-reference] typedef enum i40e_status_code i40e_status; ^ Adding -Wmicrosoft-enum-forward-reference compiler flag to disable the warning on Windows Clang. Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon --- config/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/meson.build b/config/meson.build index c02802c18..6736023fa 100644 --- a/config/meson.build +++ b/config/meson.build @@ -212,6 +212,9 @@ warning_flags = [ '-Wno-packed-not-aligned', '-Wno-missing-field-initializers' ] +if is_windows + warning_flags += '-Wno-microsoft-enum-forward-reference' +endif if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') # FIXME: Bugzilla 396 warning_flags += '-Wno-zero-length-bounds'