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:
parent
c03f9cec42
commit
eed336233c
@ -336,7 +336,8 @@ 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',
|
'-Wno-error=#warnings', # clang
|
||||||
|
'-Wno-string-plus-int', # clang
|
||||||
|
|
||||||
# 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',
|
||||||
|
Loading…
Reference in New Issue
Block a user