diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-04-02 04:54:45 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-04-02 05:02:00 +0200 |
commit | 51ebdbd5598ebb6db59175f7645094916b7152f9 (patch) | |
tree | 7ba0abe3250adceb0452c8884b19b1db62001157 | |
parent | e81b57c8daf00fdbf5d2405b0486927885765795 (diff) | |
download | servo-51ebdbd5598ebb6db59175f7645094916b7152f9.tar.gz servo-51ebdbd5598ebb6db59175f7645094916b7152f9.zip |
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
-rw-r--r-- | ports/geckolib/gecko_style_structs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |