aboutsummaryrefslogtreecommitdiffstats
path: root/examples/grabbing.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-09-28 12:19:36 -0400
committerJosh Matthews <josh@joshmatthews.net>2015-09-28 12:19:36 -0400
commit77b37431173a7267835f01915f7bc604d9f5a6ff (patch)
tree9f7040ca1718d0e77e0810db4873cee369067497 /examples/grabbing.rs
parent3e11e5ef69cc714c067dff49834f0e782c8f7fc6 (diff)
downloadglutin-77b37431173a7267835f01915f7bc604d9f5a6ff.tar.gz
glutin-77b37431173a7267835f01915f7bc604d9f5a6ff.zip
Warning fixes for OS X.
Diffstat (limited to 'examples/grabbing.rs')
-rw-r--r--examples/grabbing.rs4
1 files changed, 2 insertions, 2 deletions
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();
}
}