mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
meson: pass rustc_args when building all crates
rustc_args is needed to smooth the difference in warnings between the various versions of rustc. Always include those arguments. Reviewed-by: Junjie Mao <junjie.mao@hotmail.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d1e526c170
commit
7b72c7dd0d
3 changed files with 20 additions and 12 deletions
|
@ -16,10 +16,12 @@ macro_rules! device_class_init {
|
|||
) {
|
||||
let mut dc =
|
||||
::core::ptr::NonNull::new(klass.cast::<$crate::bindings::DeviceClass>()).unwrap();
|
||||
dc.as_mut().realize = $realize_fn;
|
||||
dc.as_mut().vmsd = &$vmsd;
|
||||
$crate::bindings::device_class_set_legacy_reset(dc.as_mut(), $legacy_reset_fn);
|
||||
$crate::bindings::device_class_set_props(dc.as_mut(), $props.as_mut_ptr());
|
||||
unsafe {
|
||||
dc.as_mut().realize = $realize_fn;
|
||||
dc.as_mut().vmsd = &$vmsd;
|
||||
$crate::bindings::device_class_set_legacy_reset(dc.as_mut(), $legacy_reset_fn);
|
||||
$crate::bindings::device_class_set_props(dc.as_mut(), $props.as_mut_ptr());
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue