Warning patrol. r=sparky

This commit is contained in:
Jeff Walden 2011-01-04 15:18:16 -06:00
parent 222056b574
commit 05b5d4d18a
2 changed files with 6 additions and 0 deletions

View File

@ -1890,6 +1890,9 @@ PropDesc::initialize(JSContext* cx, jsid id, const Value &origval)
bool found;
/* 8.10.5 step 3 */
#ifdef __GNUC__ /* quell GCC overwarning */
found = false;
#endif
if (!HasProperty(cx, desc, ATOM_TO_JSID(cx->runtime->atomState.enumerableAtom), &v, &found))
return false;
if (found) {

View File

@ -1639,6 +1639,9 @@ ASTSerializer::switchStatement(JSParseNode *pn, Value *dst)
for (JSParseNode *next = listNode->pn_head; next; next = next->pn_next) {
Value child;
#ifdef __GNUC__ /* quell GCC overwarning */
child = UndefinedValue();
#endif
if (!switchCase(next, &child))
return false;
JS_ALWAYS_TRUE(cases.append(child)); /* space check above */