From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 835BFA0350; Fri, 29 May 2020 01:15:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44A5A1DC0A; Fri, 29 May 2020 01:15:41 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 2D6FB1DBDE for ; Fri, 29 May 2020 01:15:35 +0200 (CEST) IronPort-SDR: Z+2E8DSjDeGqBYlAia+8140hNvrTGIOwTkoCdpUvp0Uf9SjxcwWb+h5a2fwUVVZA81A0wiFw8d OsidfwLygTvQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 16:15:33 -0700 IronPort-SDR: xE585pGQhDn9QL77yhqjzdvqfUH0W7+PSumCSGtwsxg6s+Q+W5QSPuh9JAlYuFXNiTsDK6MzUG oCO9C8IG04/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,446,1583222400"; d="scan'208";a="271022395" Received: from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain) ([10.166.188.75]) by orsmga006.jf.intel.com with ESMTP; 28 May 2020 16:15:32 -0700 From: Pallavi Kadam To: dev@dpdk.org, thomas@monjalon.net Cc: ranjit.menon@intel.com, dmitry.kozliuk@gmail.com, Narcisa.Vasile@microsoft.com, tbashar@mellanox.com, Harini.Ramakrishnan@microsoft.com, pallavi.kadam@intel.com Date: Thu, 28 May 2020 16:14:55 -0700 Message-Id: <20200528231455.13636-3-pallavi.kadam@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20200528231455.13636-1-pallavi.kadam@intel.com> References: <20200514203945.1484-1-pallavi.kadam@intel.com> <20200528231455.13636-1-pallavi.kadam@intel.com> Subject: [dpdk-dev] [PATCH v3 2/2] build: treat warning as an error on Windows 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" Added -Werror in meson file to consider all the warnings as errors on Windows. Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon --- config/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/meson.build b/config/meson.build index 43ab11310..c3c1c0c4e 100644 --- a/config/meson.build +++ b/config/meson.build @@ -208,6 +208,10 @@ warning_flags = [ '-Wno-packed-not-aligned', '-Wno-missing-field-initializers' ] +# add -Werror to treat warnings as errors on Windows +if is_windows + warning_flags += '-Werror' +endif if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') # FIXME: Bugzilla 396 warning_flags += '-Wno-zero-length-bounds' -- 2.18.0.windows.1