aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/cocoa/mod.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 /src/api/cocoa/mod.rs
parent3e11e5ef69cc714c067dff49834f0e782c8f7fc6 (diff)
downloadglutin-77b37431173a7267835f01915f7bc604d9f5a6ff.tar.gz
glutin-77b37431173a7267835f01915f7bc604d9f5a6ff.zip
Warning fixes for OS X.
Diffstat (limited to 'src/api/cocoa/mod.rs')
-rw-r--r--src/api/cocoa/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs
index ecaca69..5a2f004 100644
--- a/src/api/cocoa/mod.rs
+++ b/src/api/cocoa/mod.rs
@@ -6,7 +6,6 @@ use {CreationError, Event, MouseCursor, CursorState};
use CreationError::OsError;
use libc;
-use Api;
use ContextError;
use GlAttributes;
use GlContext;
@@ -21,9 +20,7 @@ use native_monitor::NativeMonitorId;
use objc::runtime::{Class, Object, Sel, BOOL, YES, NO};
use objc::declare::ClassDecl;
-use cgl;
use cgl::{CGLEnable, kCGLCECrashOnRemovedFunctions, CGLSetParameter, kCGLCPSurfaceOpacity};
-use cgl::CGLContextObj as CGL_CGLContextObj;
use cocoa::base::{id, nil};
use cocoa::foundation::{NSAutoreleasePool, NSDate, NSDefaultRunLoopMode, NSPoint, NSRect, NSSize,
@@ -758,7 +755,7 @@ impl Window {
}
#[inline]
- pub fn set_cursor_position(&self, x: i32, y: i32) -> Result<(), ()> {
+ pub fn set_cursor_position(&self, _x: i32, _y: i32) -> Result<(), ()> {
unimplemented!();
}
}
@@ -820,6 +817,7 @@ impl IdRef {
IdRef(i)
}
+ #[allow(dead_code)]
fn retain(i: id) -> IdRef {
if i != nil {
let _: id = unsafe { msg_send![i, retain] };
@@ -856,6 +854,7 @@ impl Clone for IdRef {
}
}
+#[allow(non_snake_case)]
unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option<Event> {
if nsevent == nil { return None; }