Warning fixes

This commit is contained in:
pschwartau%netscape.com 2001-10-09 00:08:31 +00:00
parent 80917387bf
commit 78f63becc3
3 changed files with 2 additions and 3 deletions

View File

@ -423,7 +423,6 @@ uint32 ByteCodeGen::getLabel(LabelStmtNode *lbl)
uint32 ByteCodeGen::getTopLabel(Label::LabelKind kind, const StringAtom *name, StmtNode *p) uint32 ByteCodeGen::getTopLabel(Label::LabelKind kind, const StringAtom *name, StmtNode *p)
{ {
uint32 result = uint32(-1); uint32 result = uint32(-1);
bool foundName = false;
bool foundLabel = false; bool foundLabel = false;
for (std::vector<uint32>::reverse_iterator i = mLabelStack.rbegin(), for (std::vector<uint32>::reverse_iterator i = mLabelStack.rbegin(),
end = mLabelStack.rend(); end = mLabelStack.rend();

View File

@ -2044,7 +2044,7 @@ static JSValue objectEqual(Context *cx, const JSValue& /*thisValue*/, JSValue *a
return compareEqual(cx, r1, r2); return compareEqual(cx, r1, r2);
} }
static JSValue objectSpittingImage(Context *cx, const JSValue& /*thisValue*/, JSValue *argv, uint32 /*argc*/) static JSValue objectSpittingImage(Context * /*cx*/, const JSValue& /*thisValue*/, JSValue *argv, uint32 /*argc*/)
{ {
JSValue r1 = argv[0]; JSValue r1 = argv[0];
JSValue r2 = argv[1]; JSValue r2 = argv[1];

View File

@ -601,7 +601,7 @@ XXX ...couldn't get this to work...
virtual void defineTempVariable(Context *cx, Reference *&readRef, Reference *&writeRef, JSType *type); virtual void defineTempVariable(Context *cx, Reference *&readRef, Reference *&writeRef, JSType *type);
virtual JSValue getSlotValue(Context *cx, uint32 slotIndex) { ASSERT(false); return kUndefinedValue; } virtual JSValue getSlotValue(Context * /*cx*/, uint32 /*slotIndex*/) { ASSERT(false); return kUndefinedValue; }
// debug only // debug only
void printProperties(Formatter &f) const void printProperties(Formatter &f) const