From: Zbigniew Jędrzejewski-Szmek Date: Fri, 22 Feb 2019 10:20:18 +0000 (+0100) Subject: meson: make sure preprocesor warnings are not treated as errors X-Git-Tag: v242-rc1~250^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b8951c1dcea8dd3121c0003241370765a13fc77;p=thirdparty%2Fsystemd.git meson: make sure preprocesor warnings are not treated as errors Clang includes -W#warning in -Werror, so the #warning used for msan would be an error. v2: - use -Wno-error=... so that the warning is still emitted, but not as an error. --- diff --git a/meson.build b/meson.build index ed787d47492..c1f457bc7d3 100644 --- a/meson.build +++ b/meson.build @@ -333,6 +333,7 @@ possible_cc_flags = [ '-Wno-missing-field-initializers', '-Wno-unused-result', '-Wno-format-signedness', + '-Wno-error=#warnings', # work-around for gcc 7.1 turning this on on its own. '-Wno-error=nonnull',