mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
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.
This commit is contained in:
parent
8a12256c9c
commit
fb1b58820f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user