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 <faith.ekstrand@collabora.com>
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35874>
This commit is contained in:
Mel Henning 2025-07-01 18:38:34 -04:00 committed by Marge Bot
parent 0eb67508bd
commit b9a9f6cd53

View file

@ -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'