mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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:
parent
0eb67508bd
commit
b9a9f6cd53
1 changed files with 3 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue