aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-10-05 15:54:37 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-10-05 15:54:37 +0200
commitfe245e292937a5af3dc6bd60c21c3426acb1449e (patch)
treeab0aa8f3db0d3cae03dcd4c5a16e74b190b17a26
parent2b5513fa80ad046252851837ce3745dd37de9088 (diff)
downloadglutin-fe245e292937a5af3dc6bd60c21c3426acb1449e.tar.gz
glutin-fe245e292937a5af3dc6bd60c21c3426acb1449e.zip
Fix warnings
-rw-r--r--src/lib.rs2
-rw-r--r--src/x11/ffi.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index af0706d..3b1a586 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -46,7 +46,7 @@ mod android;
mod events;
-#[cfg(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android"))]
+#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
compile_error!("Only the `windows`, `linux` and `macos` platforms are supported")
/// Identifier for a monitor.
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs
index 8ab6f45..1f72943 100644
--- a/src/x11/ffi.rs
+++ b/src/x11/ffi.rs
@@ -1,6 +1,7 @@
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
+#![allow(non_uppercase_statics)]
use libc;