Commit df5ad396 authored by qinsoon's avatar qinsoon

[wip] removing some warnings

parent 1623fb87
...@@ -1157,13 +1157,13 @@ pub fn emit_context(vm: &VM) { ...@@ -1157,13 +1157,13 @@ pub fn emit_context(vm: &VM) {
} }
// serialize vm // serialize vm
unimplemented!(); // unimplemented!();
// main_thread // main_thread
let primordial = vm.primordial.read().unwrap(); // let primordial = vm.primordial.read().unwrap();
if primordial.is_some() { // if primordial.is_some() {
let primordial = primordial.as_ref().unwrap(); // let primordial = primordial.as_ref().unwrap();
} // }
debug!("---finish---"); debug!("---finish---");
} }
......
extern crate nalgebra; extern crate nalgebra;
use vm::CompiledFunction; use vm::CompiledFunction;
use vm::MachineCode;
use ast::ir::*; use ast::ir::*;
use ast::types; use ast::types;
use compiler::backend; use compiler::backend;
......
...@@ -12,7 +12,6 @@ use utils::Address; ...@@ -12,7 +12,6 @@ use utils::Address;
use utils::mem::memmap; use utils::mem::memmap;
use utils::mem::memsec; use utils::mem::memsec;
use std::sync::Arc;
use std::thread; use std::thread;
use std::thread::JoinHandle; use std::thread::JoinHandle;
...@@ -192,6 +191,7 @@ impl MuThread { ...@@ -192,6 +191,7 @@ impl MuThread {
} }
#[no_mangle] #[no_mangle]
#[allow(unused_variables)]
pub extern fn mu_thread_launch(id: MuID, stack: Box<MuStack>, user_tls: Option<Address>, vm: &VM) -> JoinHandle<()> { pub extern fn mu_thread_launch(id: MuID, stack: Box<MuStack>, user_tls: Option<Address>, vm: &VM) -> JoinHandle<()> {
match thread::Builder::new().name(format!("Mu Thread #{}", id)).spawn(move || { match thread::Builder::new().name(format!("Mu Thread #{}", id)).spawn(move || {
let muthread = Box::new(MuThread::new(id, gc::new_mutator(), stack, user_tls)); let muthread = Box::new(MuThread::new(id, gc::new_mutator(), stack, user_tls));
...@@ -207,9 +207,8 @@ impl MuThread { ...@@ -207,9 +207,8 @@ impl MuThread {
} }
/// entry function for launching a mu thread /// entry function for launching a mu thread
#[allow(unused_variables)]
pub fn thread_entry(mu_thread: Box<MuThread>) -> ! { pub fn thread_entry(mu_thread: Box<MuThread>) -> ! {
let ref stack = mu_thread.stack;
unimplemented!() unimplemented!()
} }
} }
......
...@@ -13,7 +13,6 @@ use runtime::ValueLocation; ...@@ -13,7 +13,6 @@ use runtime::ValueLocation;
use utils::Address; use utils::Address;
use std::sync::RwLock; use std::sync::RwLock;
use std::cell::RefCell;
use std::sync::atomic::{AtomicUsize, AtomicBool, ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT, Ordering}; use std::sync::atomic::{AtomicUsize, AtomicBool, ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT, Ordering};
use std::thread::JoinHandle; use std::thread::JoinHandle;
......
#![allow(unused_imports)]
extern crate mu; extern crate mu;
extern crate log; extern crate log;
extern crate simple_logger; extern crate simple_logger;
...@@ -8,8 +10,6 @@ use self::mu::ast::inst::*; ...@@ -8,8 +10,6 @@ use self::mu::ast::inst::*;
use self::mu::ast::op::*; use self::mu::ast::op::*;
use self::mu::vm::*; use self::mu::vm::*;
use self::mu::compiler::*; use self::mu::compiler::*;
use self::mu::utils::Address;
use self::mu::runtime::ValueLocation;
use test_ir::test_ir::factorial; use test_ir::test_ir::factorial;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment