diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-26 10:53:10 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-26 10:53:10 +0200 |
commit | 8ac42236b09d2f21f962bf72fcbeee24502f959f (patch) | |
tree | 06514acf6e730b1f89ef10823c979a00747b7365 /meson.build | |
parent | man: fix description of --value option for loginctl (#8820) (diff) | |
download | systemd-8ac42236b09d2f21f962bf72fcbeee24502f959f.tar.xz systemd-8ac42236b09d2f21f962bf72fcbeee24502f959f.zip |
meson: drop 'name' argument in cc.has_argument() (#8823)
This fixes the following warning with clang and meson-0.46.0,
```
WARNING: Passed invalid keyword argument "name".
WARNING: This will become a hard error in the future.
WARNING: Passed invalid keyword argument "name".
WARNING: This will become a hard error in the future.
Compiler for C supports arguments -Wno-typedef-redefinition: YES
WARNING: Passed invalid keyword argument "name".
WARNING: This will become a hard error in the future.
WARNING: Passed invalid keyword argument "name".
WARNING: This will become a hard error in the future.
Compiler for C supports arguments -Wno-gnu-variable-sized-type-not-at-end: YES
```
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 734a289755..2986b5b575 100644 --- a/meson.build +++ b/meson.build @@ -374,8 +374,7 @@ if cc.get_id() == 'clang' foreach arg : ['-Wno-typedef-redefinition', '-Wno-gnu-variable-sized-type-not-at-end', ] - if cc.has_argument(arg, - name : '@0@ is supported'.format(arg)) + if cc.has_argument(arg) add_project_arguments(arg, language : 'c') endif endforeach |