From 77b37431173a7267835f01915f7bc604d9f5a6ff Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 28 Sep 2015 12:19:36 -0400 Subject: Warning fixes for OS X. --- examples/grabbing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/grabbing.rs') diff --git a/examples/grabbing.rs b/examples/grabbing.rs index 0572686..f6cef73 100644 --- a/examples/grabbing.rs +++ b/examples/grabbing.rs @@ -18,7 +18,7 @@ fn main() { println!("This example requires glutin to be compiled with the `wind fn main() { let window = glutin::WindowBuilder::new().build().unwrap(); window.set_title("glutin - Cursor grabbing test"); - unsafe { window.make_current() }; + let _ = unsafe { window.make_current() }; let context = support::load(&window); let mut grabbed = false; @@ -45,7 +45,7 @@ fn main() { } context.draw_frame((0.0, 1.0, 0.0, 1.0)); - window.swap_buffers(); + let _ = window.swap_buffers(); } } -- cgit v1.2.3