Merge pull request #49 from arjantop/master

Remove all lib compiler warnings
This commit is contained in:
Tony Aldridge
2014-03-04 10:51:01 +00:00
14 changed files with 16 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
use std::libc::c_int;
#[allow(non_camel_case_types)]
pub mod ll {
use std::cast;
use std::libc::{c_int, c_schar, c_uchar, c_uint, c_void, int16_t, uint8_t};
+1
View File
@@ -16,6 +16,7 @@ use mouse::{Mouse, MouseState};
use scancode::ScanCode;
use video;
#[allow(non_camel_case_types)]
pub mod ll {
use std::cast;
use std::libc::{c_float, c_int, c_schar, c_uint, c_void, int16_t,
+1
View File
@@ -1,4 +1,5 @@
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, int64_t};
use rwops::ll::SDL_RWops;
+1
View File
@@ -1,4 +1,5 @@
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, c_schar, c_void, int32_t, int16_t, int8_t, uint8_t};
+1
View File
@@ -9,6 +9,7 @@ use rect::Rect;
use scancode::ScanCode;
use video::Window;
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, c_schar, c_uint, int32_t, uint8_t, uint16_t,
uint32_t};
+1
View File
@@ -4,6 +4,7 @@ use get_error;
use surface;
use video;
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, c_uint, c_void, uint8_t, uint32_t};
use surface::ll::SDL_Surface;
+1
View File
@@ -1,5 +1,6 @@
use std::rand;
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, uint8_t, uint32_t};
+1
View File
@@ -18,6 +18,7 @@ pub struct Rect {
h: i32
}
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int};
+2 -1
View File
@@ -10,6 +10,7 @@ use rect::Point;
use rect::Rect;
use std::num::FromPrimitive;
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, c_char, c_void, c_float, c_double};
@@ -215,7 +216,7 @@ enum RendererParent {
#[deriving(Eq)]
pub struct Renderer {
raw: *ll::SDL_Renderer,
parent: RendererParent,
priv parent: RendererParent,
owned: bool
}
+2 -1
View File
@@ -1,3 +1,4 @@
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_uchar, uint8_t, uint32_t, c_schar};
@@ -12,7 +13,7 @@ pub mod ll {
write: *uint8_t,
close: *uint8_t,
_type: uint32_t,
hidden: SDL_RWops_Anon
priv hidden: SDL_RWops_Anon
}
extern "C" {
+1
View File
@@ -21,6 +21,7 @@ mod others {
extern {}
}
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, c_uint, c_schar, uint32_t};
+1
View File
@@ -6,6 +6,7 @@ use std::libc::c_int;
use pixels;
use rwops;
#[allow(non_camel_case_types)]
pub mod ll {
use pixels::ll::SDL_PixelFormat;
use pixels::ll::SDL_Palette;
+1
View File
@@ -10,6 +10,7 @@ pub struct Finger {
pressure: f32,
}
#[allow(non_camel_case_types)]
pub mod ll {
use std::libc::{c_int, int64_t};
use touch::Finger;
+1
View File
@@ -11,6 +11,7 @@ use std::num::FromPrimitive;
use get_error;
#[allow(non_camel_case_types)]
pub mod ll {
use rect::Rect;
use surface::ll::SDL_Surface;