diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-28 23:00:00 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-28 23:34:18 -0400 |
commit | 5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9 (patch) | |
tree | 296fce680e19e23979f657f6a3db49626b401e95 /test cases/rust | |
parent | 81c3c3808e611adeda204891f7f14228fc51efee (diff) | |
download | meson-5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9.zip meson-5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9.tar.gz meson-5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9.tar.bz2 |
test cases: make various things werror-safe
Allows getting closer to `./run_project_tests.py -- -Dwerror=true`.
- when argc and argv are not *both* used, there's a standard, compliant
mechanism to mark the variable as unused
- generated code should not build as -Werror
- more thoroughly comment out some commented code
Diffstat (limited to 'test cases/rust')
-rw-r--r-- | test cases/rust/12 bindgen/dependencies/meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test cases/rust/12 bindgen/dependencies/meson.build b/test cases/rust/12 bindgen/dependencies/meson.build index 37e5a42..998bd32 100644 --- a/test cases/rust/12 bindgen/dependencies/meson.build +++ b/test cases/rust/12 bindgen/dependencies/meson.build @@ -12,6 +12,8 @@ external_dep_rs = rust.bindgen( external_dep = static_library( 'external_dep', [external_dep_rs], + # for generated code, do not lint + rust_args: ['-A', 'warnings'], dependencies : dep_zlib.partial_dependency(links : true), ) |