Fix various build warnings.

This commit is contained in:
Ms2ger 2015-01-28 20:42:39 +01:00
parent 95f71eea5c
commit 2026cbada2
20 changed files with 25 additions and 18 deletions

View file

@ -5,6 +5,7 @@
#![deny(unused_imports)]
#![deny(unused_variables)]
#![allow(missing_copy_implementations)]
#![allow(unstable)]
extern crate azure;
extern crate geom;

View file

@ -13,6 +13,7 @@
#![allow(non_snake_case)]
#![allow(missing_copy_implementations)]
#![allow(unstable)]
extern crate "msg" as servo_msg;
extern crate serialize;

View file

@ -5,7 +5,7 @@
//! Supports writing a trace file created during each layout scope
//! that can be viewed by an external tool to make layout debugging easier.
#![macro_escape]
#![macro_use]
use flow_ref::FlowRef;
use flow;

View file

@ -7,6 +7,7 @@
#![deny(unused_imports)]
#![deny(unused_variables)]
#![allow(missing_copy_implementations)]
#![allow(unstable)]
extern crate azure;
extern crate geom;

View file

@ -49,9 +49,9 @@ extern crate string_cache_macros;
pub mod cors;
/// The implementation of the DOM.
#[macro_escape]
#[macro_use]
pub mod dom {
#[macro_escape]
#[macro_use]
pub mod macros;
/// The code to expose the DOM to JavaScript through IDL bindings.

View file

@ -7,6 +7,7 @@
#![deny(unused_imports)]
#![deny(unused_variables)]
#![allow(missing_copy_implementations)]
#![allow(unstable)]
extern crate devtools_traits;
extern crate geom;

View file

@ -7,6 +7,7 @@
#![deny(unused_imports)]
#![deny(unused_variables)]
#![allow(missing_copy_implementations)]
#![allow(unstable)]
#[macro_use]
extern crate log;

View file

@ -4,6 +4,7 @@
#![deny(unused_imports)]
#![deny(unused_variables)]
#![allow(unstable)]
#[cfg(target_os="android")]
extern crate libc;

View file

@ -195,7 +195,7 @@ impl<'a, QueueData: 'static, WorkData: Send> WorkerProxy<'a, QueueData, WorkData
/// Retrieves the queue user data.
#[inline]
pub fn user_data<'a>(&'a self) -> &'a QueueData {
pub fn user_data<'b>(&'b self) -> &'b QueueData {
unsafe {
mem::transmute(self.queue_data)
}