mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Warning patrol. r=sparky
This commit is contained in:
parent
222056b574
commit
05b5d4d18a
@ -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) {
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user