fix unused parameter warnings

This commit is contained in:
Joel Dice 2008-11-11 18:09:45 -07:00
parent 6f5613ebd9
commit fae0ccfe96
2 changed files with 9 additions and 8 deletions

View File

@ -812,7 +812,7 @@ liveNext(Context* c, Value* v)
}
void
nextRead(Context* c, Event* e, Value* v)
nextRead(Context* c, Event* e UNUSED, Value* v)
{
assert(c, e == v->reads->event);
@ -1367,7 +1367,7 @@ class SingleRead: public Read {
return true;
}
virtual void append(Context* c, Read* r) {
virtual void append(Context* c UNUSED, Read* r) {
assert(c, next_ == 0);
next_ = r;
}
@ -1575,7 +1575,7 @@ class StubRead: public Read {
return true;
}
virtual void append(Context* c, Read* r) {
virtual void append(Context* c UNUSED, Read* r) {
assert(c, next_ == 0);
next_ = r;
}

View File

@ -632,7 +632,7 @@ negateR(Context* c, unsigned size, Assembler::Register* a)
void
negateRR(Context* c, unsigned aSize, Assembler::Register* a,
unsigned bSize, Assembler::Register* b)
unsigned bSize UNUSED, Assembler::Register* b UNUSED)
{
assert(c, aSize == bSize);
assert(c, a == b);
@ -1387,7 +1387,7 @@ xorCR(Context* c, unsigned aSize, Assembler::Constant* a,
void
multiplyRR(Context* c, unsigned aSize, Assembler::Register* a,
unsigned bSize, Assembler::Register* b)
unsigned bSize UNUSED, Assembler::Register* b)
{
assert(c, aSize == bSize);
@ -1576,7 +1576,7 @@ longCompare(Context* c, Assembler::Operand* al, Assembler::Operand* ah,
void
divideRR(Context* c, unsigned aSize, Assembler::Register* a,
unsigned bSize, Assembler::Register* b UNUSED)
unsigned bSize UNUSED, Assembler::Register* b UNUSED)
{
assert(c, BytesPerWord == 8 or aSize == 4);
assert(c, aSize == bSize);
@ -1612,7 +1612,7 @@ divideCR(Context* c, unsigned aSize, Assembler::Constant* a,
void
remainderRR(Context* c, unsigned aSize, Assembler::Register* a,
unsigned bSize, Assembler::Register* b)
unsigned bSize UNUSED, Assembler::Register* b)
{
assert(c, BytesPerWord == 8 or aSize == 4);
assert(c, aSize == bSize);
@ -2279,7 +2279,8 @@ class MyAssembler: public Assembler {
virtual void apply(TernaryOperation op,
unsigned aSize, OperandType aType, Operand* aOperand,
unsigned bSize, OperandType bType, Operand* bOperand,
unsigned cSize, OperandType cType, Operand* cOperand)
unsigned cSize UNUSED, OperandType cType UNUSED,
Operand* cOperand UNUSED)
{
assert(&c, bSize == cSize);
assert(&c, bType == cType);