Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
776: Silence UB warnings caused by bindgen r=Bromeon a=Bromeon Since the update to rustc 1.53, bindgen using UB causes warnings. See rust-lang/rust-bindgen#1651 for detail. Warnings all in the style of: ``` warning: dereferencing a null pointer --> ../godot-rust/target/<toolchain>/debug/build/gdnative-sys-7023d0a45a684438/out/bindings.rs:98:19 | 98 | unsafe { &(*(::std::ptr::null::<godot_string>()))._dont_touch_that as *const _ as usize }, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed | = note: `#[warn(deref_nullptr)]` on by default ``` Co-authored-by: Jan Haller <[email protected]>
- Loading branch information