diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-09-28 12:19:36 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-09-28 12:19:36 -0400 |
commit | 77b37431173a7267835f01915f7bc604d9f5a6ff (patch) | |
tree | 9f7040ca1718d0e77e0810db4873cee369067497 /examples/transparent.rs | |
parent | 3e11e5ef69cc714c067dff49834f0e782c8f7fc6 (diff) | |
download | glutin-77b37431173a7267835f01915f7bc604d9f5a6ff.tar.gz glutin-77b37431173a7267835f01915f7bc604d9f5a6ff.zip |
Warning fixes for OS X.
Diffstat (limited to 'examples/transparent.rs')
-rw-r--r-- | examples/transparent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/transparent.rs b/examples/transparent.rs index 7635b3f..9392d38 100644 --- a/examples/transparent.rs +++ b/examples/transparent.rs @@ -24,7 +24,7 @@ fn main() { .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()); @@ -32,7 +32,7 @@ fn main() { for event in window.wait_events() { context.draw_frame((0.0, 0.0, 0.0, 0.0)); - window.swap_buffers(); + let _ = window.swap_buffers(); println!("{:?}", event); |