Skip to content

Commit

Permalink
build-sys: make nonnull warning non-fatal (#6742)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keszybz authored and poettering committed Sep 4, 2017
1 parent 8a12256 commit fb1b588
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb1b588

Please sign in to comment.