From 73b8cc55957f77ad6094263fc9721388eac743fc Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 14 May 2008 17:19:41 -0600 Subject: [PATCH] fix unused variable warnings --- src/compiler.cpp | 12 ++++++------ src/x86.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index 5cac9b78ec..b0f7d1ad47 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -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); diff --git a/src/x86.cpp b/src/x86.cpp index c82b609496..a1c28c0dbc 100644 --- a/src/x86.cpp +++ b/src/x86.cpp @@ -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);