From b9a9f6cd53d9236da9f959e8873a5ea7d3ebb9bc Mon Sep 17 00:00:00 2001 From: Mel Henning Date: Tue, 1 Jul 2025 18:38:34 -0400 Subject: [PATCH] meson: Allow unnecessary_transmutes for bindgen Otherwise I get hundreds of "unnecessary transmute" warnings on rustc 1.88.0 Cc: mesa-stable Reviewed-by: Faith Ekstrand Reviewed-by: @LingMan Part-of: --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 152aa7f31ac..5fa364067e8 100644 --- a/meson.build +++ b/meson.build @@ -788,6 +788,9 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or '--raw-line', '#![allow(non_snake_case)]', '--raw-line', '#![allow(non_upper_case_globals)]', ] + if rustc.version().version_compare('>= 1.88') + bindgen_output_args += ['--raw-line', '#![allow(unnecessary_transmutes)]'] + endif endif if get_option('precomp-compiler') != 'system'