mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
fix unused variable warnings
This commit is contained in:
parent
482065f91a
commit
73b8cc5595
@ -489,7 +489,7 @@ class RegisterSite: public Site {
|
|||||||
mask(mask), low(low), high(high), register_(NoRegister, NoRegister)
|
mask(mask), low(low), high(high), register_(NoRegister, NoRegister)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void sync(Context* c) {
|
void sync(Context* c UNUSED) {
|
||||||
assert(c, low);
|
assert(c, low);
|
||||||
|
|
||||||
register_.low = low->number;
|
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);
|
assert(c, low);
|
||||||
|
|
||||||
++ low->freezeCount;
|
++ low->freezeCount;
|
||||||
@ -548,7 +548,7 @@ class RegisterSite: public Site {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void thaw(Context* c) {
|
virtual void thaw(Context* c UNUSED) {
|
||||||
assert(c, low);
|
assert(c, low);
|
||||||
|
|
||||||
-- low->freezeCount;
|
-- low->freezeCount;
|
||||||
@ -616,7 +616,7 @@ increment(Context* c, int i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
decrement(Context* c, Register* r)
|
decrement(Context* c UNUSED, Register* r)
|
||||||
{
|
{
|
||||||
assert(c, r->refCount > 0);
|
assert(c, r->refCount > 0);
|
||||||
|
|
||||||
@ -634,7 +634,7 @@ class MemorySite: public Site {
|
|||||||
base(0), index(0), value(base, offset, index, scale)
|
base(0), index(0), value(base, offset, index, scale)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void sync(Context* c) {
|
void sync(Context* c UNUSED) {
|
||||||
assert(c, base);
|
assert(c, base);
|
||||||
|
|
||||||
value.base = base->number;
|
value.base = base->number;
|
||||||
@ -694,7 +694,7 @@ memorySite(Context* c, int base, int offset, int index, unsigned scale)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
matchRegister(Context* c, Site* s, uint64_t mask)
|
matchRegister(Context* c UNUSED, Site* s, uint64_t mask)
|
||||||
{
|
{
|
||||||
assert(c, s->type(c) == RegisterOperand);
|
assert(c, s->type(c) == RegisterOperand);
|
||||||
|
|
||||||
|
@ -909,7 +909,7 @@ moveZRR(Context* c, unsigned size, Assembler::Register* a,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
addCM(Context* c, unsigned size, Assembler::Constant* a,
|
addCM(Context* c, unsigned size UNUSED, Assembler::Constant* a,
|
||||||
Assembler::Memory* b)
|
Assembler::Memory* b)
|
||||||
{
|
{
|
||||||
assert(c, BytesPerWord == 8 or size == 4); // todo
|
assert(c, BytesPerWord == 8 or size == 4); // todo
|
||||||
@ -1138,7 +1138,7 @@ multiplyCR(Context* c, unsigned size, Assembler::Constant* a,
|
|||||||
|
|
||||||
void
|
void
|
||||||
divideRR(Context* c, unsigned size, Assembler::Register* a,
|
divideRR(Context* c, unsigned size, Assembler::Register* a,
|
||||||
Assembler::Register* b)
|
Assembler::Register* b UNUSED)
|
||||||
{
|
{
|
||||||
assert(c, BytesPerWord == 8 or size == 4);
|
assert(c, BytesPerWord == 8 or size == 4);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user