mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #49 from arjantop/master
Remove all lib compiler warnings
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub mod ll {
|
||||
use std::libc::{c_int, int64_t};
|
||||
use rwops::ll::SDL_RWops;
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
use std::rand;
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub mod ll {
|
||||
use std::libc::{c_int, uint8_t, uint32_t};
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ pub struct Rect {
|
||||
h: i32
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub mod ll {
|
||||
|
||||
use std::libc::{c_int};
|
||||
|
||||
+2
-1
@@ -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
@@ -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" {
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user