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/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/window.rs') diff --git a/examples/window.rs b/examples/window.rs index 8204b95..8f378f0 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -22,7 +22,7 @@ fn main() { let mut window = glutin::WindowBuilder::new().build().unwrap(); window.set_title("A fantastic window!"); window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); - unsafe { window.make_current() }; + let _ = unsafe { window.make_current() }; println!("Pixel format of the window: {:?}", window.get_pixel_format()); @@ -30,7 +30,7 @@ fn main() { for event in window.wait_events() { context.draw_frame((0.0, 1.0, 0.0, 1.0)); - window.swap_buffers(); + let _ = window.swap_buffers(); println!("{:?}", event); -- cgit v1.2.3