Skip to content

Commit

Permalink
auto merge of #5918 : catamorphism/rust/Warnings, r=catamorphism
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Apr 18, 2013
2 parents acf8887 + f86bf0e commit d4daee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ use io::{Writer, WriterUtil};
use libc::c_void;
use managed;
use ptr;
#[cfg(stage0)] use sys;
use reflect;
use reflect::{MovePtr, align};
use sys;
use to_str::ToStr;
use vec::UnboxedVecRepr;
use vec::raw::{VecRepr, SliceRepr};
Expand Down Expand Up @@ -479,7 +479,7 @@ impl TyVisitor for ReprVisitor {
}

#[cfg(not(stage0))]
fn visit_enter_enum(&self, n_variants: uint,
fn visit_enter_enum(&self, _n_variants: uint,
get_disr: extern unsafe fn(ptr: *Opaque) -> int,
_sz: uint, _align: uint) -> bool {
let disr = unsafe { get_disr(transmute(self.ptr)) };
Expand Down

0 comments on commit d4daee4

Please sign in to comment.