diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2018-11-29 13:22:08 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-30 08:45:22 +0100 |
commit | 38c1c96db1c744208ede745143c317329bd788e6 (patch) | |
tree | 9ddec03a295e37ddc283ce501a56391cfd6aeaa5 /meson.build | |
parent | Merge pull request #10990 from keszybz/link-libmount-less (diff) | |
download | systemd-38c1c96db1c744208ede745143c317329bd788e6.tar.xz systemd-38c1c96db1c744208ede745143c317329bd788e6.zip |
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>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index c08a8b7d6e..ec78e4c926 100644 --- a/meson.build +++ b/meson.build @@ -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 |