From 51ebdbd5598ebb6db59175f7645094916b7152f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 2 Apr 2016 04:54:45 +0200 Subject: [PATCH] geckolib: Add dummy fields in the vtables to supress rustc warnings about zero-sized ctypes This includes https://github.com/emilio/rust-bindgen/commit/6de91cbb8ddf87f8080ab4a381b4ba7f55ed11bc --- ports/geckolib/gecko_style_structs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/geckolib/gecko_style_structs.rs b/ports/geckolib/gecko_style_structs.rs index ab0dc6a6bcc..ac0b6393a85 100644 --- a/ports/geckolib/gecko_style_structs.rs +++ b/ports/geckolib/gecko_style_structs.rs @@ -1884,6 +1884,7 @@ pub struct nsISupports { } #[repr(C)] pub struct _vftable_nsISupports { + pub _bindgen_empty_ctype_warning_fix: u64, } impl ::std::clone::Clone for nsISupports { fn clone(&self) -> Self { *self } @@ -3738,6 +3739,7 @@ pub struct CounterStyle { } #[repr(C)] pub struct _vftable_CounterStyle { + pub _bindgen_empty_ctype_warning_fix: u64, } impl ::std::clone::Clone for CounterStyle { fn clone(&self) -> Self { *self }