From 040ef8f5c9e9d887628135b2eb9828e705e4f76c Mon Sep 17 00:00:00 2001 From: LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org> Date: Wed, 14 May 2025 10:26:10 +0200 Subject: [PATCH] entaviv/isa: Silence warnings about non snake case names These are benign style warnings. The code is generated by bindgen and it's a bug there that these names get generated at all. Silences these warnings since we can't do anything about them: ``` warning: method `use__raw` should have a snake case name --> src/etnaviv/isa/isa_bindings.rs:358:19 | 358 | pub unsafe fn use__raw(this: *const Self) -> ::std::os::raw::c_uint { | ^^^^^^^^ help: convert the identifier to snake case: `use_raw` | = note: `#[warn(non_snake_case)]` on by default warning: method `use__raw` should have a snake case name --> src/etnaviv/isa/isa_bindings.rs:1023:19 | 1023 | pub unsafe fn use__raw(this: *const Self) -> ::std::os::raw::c_uint { | ^^^^^^^^ help: convert the identifier to snake case: `use_raw` ``` Fixes: 15a784689e6 ("etnaviv: isa: Generate Rust FFI bindings for asm.h") Reviewed-by: Christian Gmeiner Part-of: --- src/etnaviv/isa/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etnaviv/isa/meson.build b/src/etnaviv/isa/meson.build index c69c996015e..d4b1cd87836 100644 --- a/src/etnaviv/isa/meson.build +++ b/src/etnaviv/isa/meson.build @@ -118,6 +118,7 @@ if with_tools.contains('etnaviv') rust_abi : 'rust', rust_args: [ '-Anon_camel_case_types', + '-Anon_snake_case', ], )