mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b29a2f9ea8
commit
c8fba04459
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user