From da606dc50289cd4cd040eceed9397823a2e56bfb Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Tue, 1 Aug 2006 01:52:37 +0000 Subject: [PATCH] Warning fix, plus an XXX comment. --- js/src/jsobj.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/src/jsobj.c b/js/src/jsobj.c index 415d4461cda..5b65f3defc0 100644 --- a/js/src/jsobj.c +++ b/js/src/jsobj.c @@ -1912,6 +1912,10 @@ js_CloneBlockObject(JSContext *cx, JSObject *proto, JSObject *parent, return clone; } +/* + * XXXblock this reverses a path in the property tree -- try to share + * the prototype's scope harder! + */ JSBool js_PutBlockObject(JSContext *cx, JSObject *obj) { @@ -2022,6 +2026,9 @@ block_xdrObject(JSXDRState *xdr, JSObject **objp) count = OBJ_BLOCK_COUNT(cx, *objp); tmp = (uint32)(depth << 16) | count; } +#ifdef __GNUC__ /* suppress bogus gcc warnings */ + else count = 0; +#endif /* First, XDR the parent atomid. */ if (!JS_XDRUint32(xdr, &parentId))