diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-10-18 10:43:49 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-18 11:00:43 +0200 |
commit | 44dc2d5b309b244efff98b1bb08050c754b4313e (patch) | |
tree | 708f61f2b8f71f53d458acfffe4840159cb59585 /moth | |
parent | 45de4917a1d977aefb34a0b52bd44858992d89eb (diff) |
Fix unused parameter/variable warnings.
Change-Id: I1e1fad753b99a52a1e65dcf38f64c394fa506735
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'moth')
-rw-r--r-- | moth/qv4isel_moth.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/moth/qv4isel_moth.cpp b/moth/qv4isel_moth.cpp index d37bcdaf65..2a65f77a61 100644 --- a/moth/qv4isel_moth.cpp +++ b/moth/qv4isel_moth.cpp @@ -4,7 +4,7 @@ using namespace QQmlJS; using namespace QQmlJS::Moth; -InstructionSelection::InstructionSelection(VM::ExecutionEngine *engine, IR::Module *module, +InstructionSelection::InstructionSelection(VM::ExecutionEngine *engine, IR::Module * /*module*/, uchar *code) : _engine(engine), _code(code), _ccode(code) { @@ -64,6 +64,7 @@ void InstructionSelection::visitExp(IR::Exp *s) Q_UNIMPLEMENTED(); } } else if (IR::Member *m = c->base->asMember()) { + Q_UNUSED(m); Q_UNIMPLEMENTED(); } else if (IR::Temp *t = c->base->asTemp()) { Instruction::LoadTemp load; @@ -202,10 +203,12 @@ ALUFunction aluOpFunction(IR::AluOp op) void InstructionSelection::simpleMove(IR::Move *s) { if (IR::Name *n = s->target->asName()) { + Q_UNUSED(n); qWarning("NAME"); } else if (IR::Temp *t = s->target->asTemp()) { if (IR::Name *n = s->source->asName()) { + Q_UNUSED(n); qWarning(" NAME"); } else if (IR::Const *c = s->source->asConst()) { switch (c->type) { @@ -241,12 +244,16 @@ void InstructionSelection::simpleMove(IR::Move *s) load.value = clos->value; addInstruction(load); } else if (IR::New *ctor = s->source->asNew()) { + Q_UNUSED(ctor); qWarning(" NEW"); } else if (IR::Member *m = s->source->asMember()) { + Q_UNUSED(m); qWarning(" MEMBER"); } else if (IR::Subscript *ss = s->source->asSubscript()) { + Q_UNUSED(ss); qWarning(" SUBSCRIPT"); } else if (IR::Unop *u = s->source->asUnop()) { + Q_UNUSED(u); qWarning(" UNOP"); } else if (IR::Binop *b = s->source->asBinop()) { Instruction::Binop binop; @@ -255,6 +262,7 @@ void InstructionSelection::simpleMove(IR::Move *s) binop.rhsTempIndex = b->right->index; addInstruction(binop); } else if (IR::Call *c = s->source->asCall()) { + Q_UNUSED(c); qWarning(" CALL"); } @@ -263,8 +271,10 @@ void InstructionSelection::simpleMove(IR::Move *s) addInstruction(st); } else if (IR::Member *m = s->target->asMember()) { + Q_UNUSED(m); qWarning("MEMBER"); } else if (IR::Subscript *ss = s->target->asSubscript()) { + Q_UNUSED(ss); qWarning("SUBSCRIPT"); } else { Q_UNREACHABLE(); |