]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: make sure preprocesor warnings are not treated as errors
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2019 10:20:18 +0000 (11:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Feb 2019 09:06:47 +0000 (10:06 +0100)
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.

meson.build

index ed787d4749231d6a3900c0e995808f224915dc5a..c1f457bc7d33196b8ebbcf8b51609bc8d1f910f2 100644 (file)
@@ -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',