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'