diff options
author | Ran Benita <ran234@gmail.com> | 2018-02-23 03:45:13 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2018-02-23 04:35:15 +0200 |
commit | 4d8e4654cb9b3958897d2d230a3714b1abc6b9b4 (patch) | |
tree | daf8e0be61c3360820c714fac1750b05950d6583 /test cases | |
parent | 6ec401af4b3ac974a1699fa5486e19dd299d77e0 (diff) | |
download | meson-4d8e4654cb9b3958897d2d230a3714b1abc6b9b4.zip meson-4d8e4654cb9b3958897d2d230a3714b1abc6b9b4.tar.gz meson-4d8e4654cb9b3958897d2d230a3714b1abc6b9b4.tar.bz2 |
Warn if non-permitted keyword arguments are given to compiler methods
This can help future generations avoid mistakes like this:
https://github.com/xkbcommon/libxkbcommon/commit/edb1c662394578a54b7bbed231d918925e5d8150
To avoid breaking builds, this is currently just an error. After
sufficient time has passed this can hopefully become a hard error,
similarly to the already-existing `permittedKwargs` warnings.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/23 non-permitted kwargs/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/unit/23 non-permitted kwargs/meson.build b/test cases/unit/23 non-permitted kwargs/meson.build new file mode 100644 index 0000000..9f7dc1f --- /dev/null +++ b/test cases/unit/23 non-permitted kwargs/meson.build @@ -0,0 +1,5 @@ +project('non-permitted kwargs', 'c') +cc = meson.get_compiler('c') +cc.has_header_symbol('stdio.h', 'printf', prefixxx: '#define XXX') +cc.links('int main(){}', argsxx: '') +cc.get_id(invalidxx: '') |