mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user