[dpdk-dev] [PATCH v3 2/2] build: treat warning as an error on Windows
Pallavi Kadam
pallavi.kadam at intel.com
Fri May 29 01:14:55 CEST 2020
Added -Werror in meson file to consider all the warnings
as errors on Windows.
Signed-off-by: Pallavi Kadam <pallavi.kadam at intel.com>
Reviewed-by: Ranjit Menon <ranjit.menon at intel.com>
---
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
More information about the dev
mailing list