Added -Werror in meson file to consider all the warnings as errors on Windows.
Signed-off-by: Pallavi Kadam <pallavi.ka...@intel.com> Reviewed-by: Ranjit Menon <ranjit.me...@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