1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 18:55:09 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-02-22 11:20:18 +01:00
parent c9151d5c4a
commit 3b8951c1dc

View File

@ -333,6 +333,7 @@ possible_cc_flags = [
'-Wno-missing-field-initializers', '-Wno-missing-field-initializers',
'-Wno-unused-result', '-Wno-unused-result',
'-Wno-format-signedness', '-Wno-format-signedness',
'-Wno-error=#warnings',
# work-around for gcc 7.1 turning this on on its own. # work-around for gcc 7.1 turning this on on its own.
'-Wno-error=nonnull', '-Wno-error=nonnull',