From: Zbigniew Jędrzejewski-Szmek Date: Mon, 4 Sep 2017 16:49:12 +0000 (+0300) Subject: build-sys: make nonnull warning non-fatal (#6742) X-Git-Tag: v235~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb1b58820fc4622a3b7f54b4096943e4768505cb;p=thirdparty%2Fsystemd.git build-sys: make nonnull warning non-fatal (#6742) Seems to be some kind of confusion in gcc. Insteading of playing whack-a-mole and adding work-arounds in code, let's adjust the compilation options instead. Fixes #6119, replaces #6657. --- diff --git a/meson.build b/meson.build index 4102bb7490b..5fb90ddea33 100644 --- a/meson.build +++ b/meson.build @@ -285,7 +285,9 @@ endforeach foreach arg : ['unused-parameter', 'missing-field-initializers', 'unused-result', - 'format-signedness'] + 'format-signedness', + 'error=nonnull', # work-around for gcc 7.1 turning this on on its own + ] if cc.has_argument('-W' + arg) add_project_arguments('-Wno-' + arg, language : 'c') endif