Quell -Werror=return-type by adding some more MOZ_NOT_REACHED. Continuing along with bug 751377, r=sparky

--HG--
extra : rebase_source : 99992b13b2d3c200f6945aa1187c00a27603e6b2
This commit is contained in:
Jeff Walden 2012-05-29 12:01:32 -07:00
parent b29a2f9ea8
commit c8fba04459

View File

@ -578,6 +578,9 @@ js::GetElement(JSContext *cx, ObjectImpl *obj, ObjectImpl *receiver, uint32_t in
MOZ_NOT_REACHED("NYI: handle PropertyOp'd properties here");
return false;
} while (false);
MOZ_NOT_REACHED("buggy control flow");
return false;
}
bool
@ -609,6 +612,9 @@ js::HasElement(JSContext *cx, ObjectImpl *obj, uint32_t index, bool *found)
*found = false;
return true;
} while (false);
MOZ_NOT_REACHED("buggy control flow");
return false;
}
bool
@ -801,4 +807,7 @@ js::SetElement(JSContext *cx, ObjectImpl *obj, ObjectImpl *receiver, uint32_t in
PropDesc newDesc(v, PropDesc::Writable, PropDesc::Enumerable, PropDesc::Configurable);
return DefineElement(cx, receiver, index, newDesc, false, succeeded);
} while (false);
MOZ_NOT_REACHED("buggy control flow");
return false;
}