mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
meson.build: fix detection of -Werror=shadow
Pass -Werror=shadow in args of cc.compiles otherwise test will always succeed This fix a build failure with gcc 4.7.3 Fixes: - http://autobuild.buildroot.org/results/ffd71c473d3b29618c18cd2e04705370266696f2 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
9ed6a1d2c6
commit
38c1c96db1
|
@ -397,7 +397,7 @@ if cc.compiles('''
|
|||
struct timespec now;
|
||||
return 0;
|
||||
}
|
||||
''', name : '-Werror=shadow with local shadowing')
|
||||
''', args: '-Werror=shadow', name : '-Werror=shadow with local shadowing')
|
||||
add_project_arguments('-Werror=shadow', language : 'c')
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue