]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson.build: fix detection of -Werror=shadow
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 29 Nov 2018 12:22:08 +0000 (13:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 30 Nov 2018 07:45:22 +0000 (08:45 +0100)
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>
meson.build

index c08a8b7d6e95701b410fa58e650b09b96f75e56a..ec78e4c926b9d5c10c7c0b3aee397635d7daf547 100644 (file)
@@ -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