diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-09 07:04:01 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-09 07:04:01 +0200 |
commit | 9ba9bfc369a211d96688a785a0bfe9d572d8638b (patch) | |
tree | 3088cf5a56d0e96a47301a17ac376552c338a94a /src/api/wayland | |
parent | 3f20bf345e4464ab83e7b8d1737b0173ec7b6d4f (diff) | |
parent | c973a1f83e2f9cea017e9dd48c4acaeb23fe5eb7 (diff) | |
download | glutin-9ba9bfc369a211d96688a785a0bfe9d572d8638b.tar.gz glutin-9ba9bfc369a211d96688a785a0bfe9d572d8638b.zip |
Merge pull request #439 from Esption/master
Fixed build warnings on Linux
Diffstat (limited to 'src/api/wayland')
-rw-r--r-- | src/api/wayland/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index d2ca990..31e9243 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -1,4 +1,5 @@ #![cfg(target_os = "linux")] +#![allow(unused_variables, dead_code)] use self::wayland::egl::{EGLSurface, is_egl_available}; use self::wayland::core::{Display, Registry, Compositor, Shell, ShellSurface, @@ -258,7 +259,7 @@ impl Window { wayland_context.register_surface(shell_surface.get_wsurface().get_id(), events.clone()); - wayland_context.display.flush(); + wayland_context.display.flush().unwrap(); Ok(Window { shell_surface: shell_surface, @@ -375,4 +376,4 @@ impl Drop for Window { ctxt.deregister_surface(self.shell_surface.get_wsurface().get_id()) } } -}
\ No newline at end of file +} |