aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/util.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-08-18 11:36:02 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-08-23 08:23:21 +0200
commit2130e6966a29c0201717f9e495166441917df010 (patch)
treef93d4481391da13f05fb25b3ce561ce5017ce36d /python/servo/util.py
parent98e4a53b7241d562d127e0f7005ffb38f21d1380 (diff)
downloadservo-2130e6966a29c0201717f9e495166441917df010.tar.gz
servo-2130e6966a29c0201717f9e495166441917df010.zip
Android glue: don’t zero-init non-null function pointers
Fixes: ```rust error: the type `android_injected_glue::ffi::android_app` does not permit zero-initialization --> ports/libsimpleservo/jniapi/src/lib.rs:511:46 | 511 | let mut app: ffi::android_app = unsafe { std::mem::zeroed() }; | ^^^^^^^^^^^^^^^^^^ | | | this code causes undefined behavior when executed | help: use `MaybeUninit<T>` instead | = note: `-D invalid-value` implied by `-D warnings` note: Function pointers must be non-null (in this struct field) --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/android_injected_glue-0.2.3/src/ffi.rs:23:5 | 23 | pub onAppCmd: extern fn(*mut android_app, i32), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error ```
Diffstat (limited to 'python/servo/util.py')
0 files changed, 0 insertions, 0 deletions