1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

build-sys: disable -Wstring-plus-int

clang-8 warns about constructs like "foobar"+3 (to get "bar"). We
like to use patterns like this, so let's just disable the warning.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-03-07 10:56:15 +01:00
parent c03f9cec42
commit eed336233c

View File

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