fix unused variable warnings

This commit is contained in:
Joel Dice 2008-05-14 17:19:41 -06:00
parent 482065f91a
commit 73b8cc5595
2 changed files with 8 additions and 8 deletions

View File

@ -489,7 +489,7 @@ class RegisterSite: public Site {
mask(mask), low(low), high(high), register_(NoRegister, NoRegister)
{ }
void sync(Context* c) {
void sync(Context* c UNUSED) {
assert(c, low);
register_.low = low->number;
@ -539,7 +539,7 @@ class RegisterSite: public Site {
}
}
virtual void freeze(Context* c) {
virtual void freeze(Context* c UNUSED) {
assert(c, low);
++ low->freezeCount;
@ -548,7 +548,7 @@ class RegisterSite: public Site {
}
}
virtual void thaw(Context* c) {
virtual void thaw(Context* c UNUSED) {
assert(c, low);
-- low->freezeCount;
@ -616,7 +616,7 @@ increment(Context* c, int i)
}
void
decrement(Context* c, Register* r)
decrement(Context* c UNUSED, Register* r)
{
assert(c, r->refCount > 0);
@ -634,7 +634,7 @@ class MemorySite: public Site {
base(0), index(0), value(base, offset, index, scale)
{ }
void sync(Context* c) {
void sync(Context* c UNUSED) {
assert(c, base);
value.base = base->number;
@ -694,7 +694,7 @@ memorySite(Context* c, int base, int offset, int index, unsigned scale)
}
bool
matchRegister(Context* c, Site* s, uint64_t mask)
matchRegister(Context* c UNUSED, Site* s, uint64_t mask)
{
assert(c, s->type(c) == RegisterOperand);

View File

@ -909,7 +909,7 @@ moveZRR(Context* c, unsigned size, Assembler::Register* a,
}
void
addCM(Context* c, unsigned size, Assembler::Constant* a,
addCM(Context* c, unsigned size UNUSED, Assembler::Constant* a,
Assembler::Memory* b)
{
assert(c, BytesPerWord == 8 or size == 4); // todo
@ -1138,7 +1138,7 @@ multiplyCR(Context* c, unsigned size, Assembler::Constant* a,
void
divideRR(Context* c, unsigned size, Assembler::Register* a,
Assembler::Register* b)
Assembler::Register* b UNUSED)
{
assert(c, BytesPerWord == 8 or size == 4);