зеркало из https://github.com/mozilla/gecko-dev.git
Propagate mcafee compile-warning fixes from js/src.
This commit is contained in:
Родитель
5f8f73f347
Коммит
8257eac38e
|
@ -205,7 +205,7 @@ JS_ConvertArguments(JSContext *cx, uintN argc, jsval *argv, const char *format,
|
|||
JS_PUBLIC_API(JSBool)
|
||||
JS_ConvertValue(JSContext *cx, jsval v, JSType type, jsval *vp)
|
||||
{
|
||||
JSBool ok, b;
|
||||
JSBool ok = JS_FALSE, b;
|
||||
JSObject *obj;
|
||||
JSFunction *fun;
|
||||
JSString *str;
|
||||
|
@ -332,7 +332,7 @@ JS_ValueToBoolean(JSContext *cx, jsval v, JSBool *bp)
|
|||
JS_PUBLIC_API(JSType)
|
||||
JS_TypeOfValue(JSContext *cx, jsval v)
|
||||
{
|
||||
JSType type;
|
||||
JSType type = JSTYPE_VOID;
|
||||
JSObject *obj;
|
||||
JSObjectOps *ops;
|
||||
JSClass *clasp;
|
||||
|
|
|
@ -663,7 +663,7 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
|
|||
case TOK_SWITCH:
|
||||
{
|
||||
JSOp switchop;
|
||||
uint32 ncases, tablen;
|
||||
uint32 ncases, tablen = 0;
|
||||
JSScript *script;
|
||||
jsint i, low, high;
|
||||
jsdouble d;
|
||||
|
|
|
@ -694,7 +694,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
|
|||
JSOp op, lastop, saveop;
|
||||
JSCodeSpec *cs, *topcs;
|
||||
jssrcnote *sn;
|
||||
const char *lval, *rval, *xval;
|
||||
const char *lval, *rval = NULL, *xval;
|
||||
jsint i, argc;
|
||||
char **argv;
|
||||
JSAtom *atom;
|
||||
|
|
|
@ -276,7 +276,7 @@ JS_XDRUint16(JSXDRState *xdr, uint16 *s)
|
|||
JS_PUBLIC_API(JSBool)
|
||||
JS_XDRUint32(JSXDRState *xdr, uint32 *lp)
|
||||
{
|
||||
JSBool ok;
|
||||
JSBool ok = JS_FALSE;
|
||||
if (xdr->mode == JSXDR_ENCODE) {
|
||||
uint32 xl = JSXDR_SWAB32(*lp);
|
||||
ok = xdr->ops->set32(xdr, &xl);
|
||||
|
|
|
@ -34,7 +34,7 @@ try_convert_to_jsint(JSContext *cx, jsval idval)
|
|||
if (JS7_ISDEC(*cp)) {
|
||||
jsuint index = JS7_UNDEC(*cp++);
|
||||
jsuint oldIndex = 0;
|
||||
jsuint c;
|
||||
jsuint c = 0;
|
||||
if (index != 0) {
|
||||
while (JS7_ISDEC(*cp)) {
|
||||
oldIndex = index;
|
||||
|
|
Загрузка…
Ссылка в новой задаче