aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/egl
diff options
context:
space:
mode:
authorEsption <esption@gmail.com>2015-05-08 12:31:56 -0500
committerEsption <esption@gmail.com>2015-05-08 12:31:56 -0500
commitc973a1f83e2f9cea017e9dd48c4acaeb23fe5eb7 (patch)
tree64a7282c58e3ad6e7de4221b27840caeb857bd87 /src/api/egl
parent0d10dda72a3d56ec137da0359b2f46fc75b7aaa9 (diff)
downloadglutin-c973a1f83e2f9cea017e9dd48c4acaeb23fe5eb7.tar.gz
glutin-c973a1f83e2f9cea017e9dd48c4acaeb23fe5eb7.zip
Fixed build warnings
Diffstat (limited to 'src/api/egl')
-rw-r--r--src/api/egl/ffi.rs2
-rw-r--r--src/api/egl/mod.rs7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/api/egl/ffi.rs b/src/api/egl/ffi.rs
index 5fa6384..6a81ada 100644
--- a/src/api/egl/ffi.rs
+++ b/src/api/egl/ffi.rs
@@ -1,3 +1,5 @@
+#![allow(non_camel_case_types)]
+
use libc;
#[cfg(target_os = "windows")]
diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs
index b2fe2c6..8f9ebcf 100644
--- a/src/api/egl/mod.rs
+++ b/src/api/egl/mod.rs
@@ -1,4 +1,5 @@
#![cfg(any(target_os = "linux", target_os = "android"))]
+#![allow(unused_variables)]
use BuilderAttribs;
use CreationError;
@@ -161,9 +162,7 @@ impl Context {
impl GlContext for Context {
unsafe fn make_current(&self) {
- let ret = unsafe {
- self.egl.MakeCurrent(self.display, self.surface, self.surface, self.context)
- };
+ let ret = self.egl.MakeCurrent(self.display, self.surface, self.surface, self.context);
if ret == 0 {
panic!("eglMakeCurrent failed");
@@ -206,8 +205,6 @@ unsafe impl Sync for Context {}
impl Drop for Context {
fn drop(&mut self) {
- use std::ptr;
-
unsafe {
// we don't call MakeCurrent(0, 0) because we are not sure that the context
// is still the current one