mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Warning fixes for OS X.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user