fix GCC 4.6 unused variable warnings

This commit is contained in:
Joel Dice 2011-03-26 14:43:03 -06:00
parent d02d7c9846
commit 01b3f1cb93
3 changed files with 4 additions and 4 deletions

View File

@ -6859,7 +6859,7 @@ compile(MyThread* t, Context* context)
memset(RUNTIME_ARRAY_BODY(visited), 0, visitCount * sizeof(bool));
while (visitCount) {
bool progress = false;
bool progress UNUSED = false;
for (unsigned i = 0; i < exceptionHandlerTableLength(t, eht); ++i) {
c->restoreState(state);

View File

@ -1434,7 +1434,7 @@ visitDirtyFixies(Context* c, Fixie** p)
while (*p) {
Fixie* f = *p;
bool wasDirty = false;
bool wasDirty UNUSED = false;
bool clean = true;
uintptr_t* mask = f->mask();
@ -1527,7 +1527,7 @@ void
collect(Context* c, Segment::Map* map, unsigned start, unsigned end,
bool* dirty, bool expectDirty UNUSED)
{
bool wasDirty = false;
bool wasDirty UNUSED = false;
for (Segment::Map::Iterator it(map, start, end); it.hasMore();) {
wasDirty = true;
if (map->child) {

View File

@ -2865,7 +2865,7 @@ class MyArchitecture: public Assembler::Architecture {
virtual void updateCall(UnaryOperation op, void* returnAddress,
void* newTarget)
{
bool assertAlignment;
bool assertAlignment UNUSED;
switch (op) {
case AlignedCall:
op = Call;