]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: disable -Wstring-plus-int
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2019 09:56:15 +0000 (10:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2019 09:58:49 +0000 (10:58 +0100)
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.

meson.build

index ae2ef48231ed11ff9b7d062218531ce128f7887b..3d8220e1549a271ebb45b2d11744371eff350c6e 100644 (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',