fix warnings for optimized build

This commit is contained in:
Joel Dice 2009-03-07 17:52:18 -07:00
parent 14c6deb710
commit e1395f300a
2 changed files with 15 additions and 15 deletions

View File

@ -3111,7 +3111,7 @@ pop(Context* c, unsigned footprint)
{ {
assert(c, footprint); assert(c, footprint);
Stack* s; Stack* s = 0;
bool bigEndian = c->arch->bigEndian(); bool bigEndian = c->arch->bigEndian();

View File

@ -742,13 +742,13 @@ void multiplyR(Context* con, unsigned size, Reg* a, Reg* b, Reg* t) {
} }
} }
void multiplyC(Context* con, unsigned size, Const* a, Reg* b, Reg* t) { void multiplyC(Context* con, unsigned size UNUSED, Const* a, Reg* b, Reg* t) {
assert(con, size == 4); assert(con, size == 4);
int64_t i = getVal(a); int64_t i = getVal(a);
issue(con, mulli(R(t), R(b), i)); issue(con, mulli(R(t), R(b), i));
} }
void divideR(Context* con, unsigned size, Reg* a, Reg* b, Reg* t) { void divideR(Context* con, unsigned size UNUSED, Reg* a, Reg* b, Reg* t) {
assert(con, size == 4); assert(con, size == 4);
issue(con, divw(R(t), R(b), R(a))); issue(con, divw(R(t), R(b), R(a)));
} }
@ -874,7 +874,7 @@ moveRM(Context* c, unsigned srcSize, Assembler::Register* src,
} }
void void
moveAndUpdateRM(Context* c, unsigned srcSize, Assembler::Register* src, moveAndUpdateRM(Context* c, unsigned srcSize UNUSED, Assembler::Register* src,
unsigned dstSize UNUSED, Assembler::Memory* dst) unsigned dstSize UNUSED, Assembler::Memory* dst)
{ {
assert(c, srcSize == BytesPerWord); assert(c, srcSize == BytesPerWord);
@ -1036,7 +1036,7 @@ andC(Context* c, unsigned size, Assembler::Constant* a,
uint32_t v32 = static_cast<uint32_t>(v); uint32_t v32 = static_cast<uint32_t>(v);
unsigned state = 0; unsigned state = 0;
unsigned start; unsigned start = 0;
unsigned end = 31; unsigned end = 31;
for (unsigned i = 0; i < 32; ++i) { for (unsigned i = 0; i < 32; ++i) {
unsigned bit = (v32 >> i) & 1; unsigned bit = (v32 >> i) & 1;
@ -1186,8 +1186,8 @@ moveAR(Context* c, unsigned srcSize, Assembler::Address* src,
} }
void void
compareRR(Context* c, unsigned aSize, Assembler::Register* a, compareRR(Context* c, unsigned aSize UNUSED, Assembler::Register* a,
unsigned bSize, Assembler::Register* b) unsigned bSize UNUSED, Assembler::Register* b)
{ {
assert(c, aSize == 4 and bSize == 4); assert(c, aSize == 4 and bSize == 4);
@ -1235,8 +1235,8 @@ compareRM(Context* c, unsigned aSize, Assembler::Register* a,
} }
void void
compareUnsignedRR(Context* c, unsigned aSize, Assembler::Register* a, compareUnsignedRR(Context* c, unsigned aSize UNUSED, Assembler::Register* a,
unsigned bSize, Assembler::Register* b) unsigned bSize UNUSED, Assembler::Register* b)
{ {
assert(c, aSize == 4 and bSize == 4); assert(c, aSize == 4 and bSize == 4);
@ -1395,7 +1395,7 @@ moveCM(Context* c, unsigned srcSize, Assembler::Constant* src,
void void
negateRR(Context* c, unsigned srcSize, Assembler::Register* src, negateRR(Context* c, unsigned srcSize, Assembler::Register* src,
unsigned dstSize, Assembler::Register* dst) unsigned dstSize UNUSED, Assembler::Register* dst)
{ {
assert(c, srcSize == dstSize); assert(c, srcSize == dstSize);
@ -1410,7 +1410,7 @@ negateRR(Context* c, unsigned srcSize, Assembler::Register* src,
} }
void void
callR(Context* c, unsigned size, Assembler::Register* target) callR(Context* c, unsigned size UNUSED, Assembler::Register* target)
{ {
assert(c, size == BytesPerWord); assert(c, size == BytesPerWord);
@ -1419,7 +1419,7 @@ callR(Context* c, unsigned size, Assembler::Register* target)
} }
void void
callC(Context* c, unsigned size, Assembler::Constant* target) callC(Context* c, unsigned size UNUSED, Assembler::Constant* target)
{ {
assert(c, size == BytesPerWord); assert(c, size == BytesPerWord);
@ -1428,7 +1428,7 @@ callC(Context* c, unsigned size, Assembler::Constant* target)
} }
void void
longCallC(Context* c, unsigned size, Assembler::Constant* target) longCallC(Context* c, unsigned size UNUSED, Assembler::Constant* target)
{ {
assert(c, size == BytesPerWord); assert(c, size == BytesPerWord);
@ -1438,7 +1438,7 @@ longCallC(Context* c, unsigned size, Assembler::Constant* target)
} }
void void
longJumpC(Context* c, unsigned size, Assembler::Constant* target) longJumpC(Context* c, unsigned size UNUSED, Assembler::Constant* target)
{ {
assert(c, size == BytesPerWord); assert(c, size == BytesPerWord);
@ -1936,7 +1936,7 @@ class MyAssembler: public Assembler {
unsigned, OperandType aType, Operand* aOperand, unsigned, OperandType aType, Operand* aOperand,
unsigned bSize, OperandType bType UNUSED, unsigned bSize, OperandType bType UNUSED,
Operand* bOperand, Operand* bOperand,
unsigned cSize, OperandType cType UNUSED, unsigned cSize UNUSED, OperandType cType UNUSED,
Operand* cOperand) Operand* cOperand)
{ {
assert(&c, bSize == cSize); assert(&c, bSize == cSize);