Closed
Bug 464788
Opened 17 years ago
Closed 17 years ago
Fix compile warnings in XPConnect
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b3
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
(Keywords: fixed1.9.1)
Attachments
(1 file)
1.67 KB,
patch
|
jst
:
review+
jst
:
superreview+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
Currently, compiling XPConnect gives:
/Users/mrbkap/work/main/mozilla/js/src/xpconnect/src/xpcruntimesvc.cpp:89: warning: unused variable ‘rv’
/Users/mrbkap/work/main/mozilla/js/src/xpconnect/src/xpcwrappednativeinfo.cpp:230: warning: left-hand operand of comma has no effect
/Users/mrbkap/work/main/mozilla/js/src/xpconnect/src/xpcwrappednativeinfo.cpp:231: warning: left-hand operand of comma has no effect
The first warning is trivial. The second warnings are due to the lines:
STOBJ_SET_PARENT(funobj, nsnull);
STOBJ_SET_PROTO(funobj, nsnull);
which expand to:
(void)((!(0) || (((JSObject*)0)->classword |= 1)), (funobj)->fslots[1] = ((j
sval)(0)));
(void)((!(0) || (((JSObject*)0)->classword |= 1)), (funobj)->fslots[0] = ((j
sval)(0)));
leading to the warning. The fix is to use OBJ_CLEAR_{PARENT,PROTO}.
Assignee | ||
Comment 1•17 years ago
|
||
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #348058 -
Flags: superreview?(jst)
Attachment #348058 -
Flags: review?(jst)
Updated•17 years ago
|
Attachment #348058 -
Flags: superreview?(jst)
Attachment #348058 -
Flags: superreview+
Attachment #348058 -
Flags: review?(jst)
Attachment #348058 -
Flags: review+
Assignee | ||
Comment 2•17 years ago
|
||
Comment on attachment 348058 [details] [diff] [review]
Fix
This can wait until after the beta.
Attachment #348058 -
Flags: approval1.9.1?
Comment 3•17 years ago
|
||
Comment on attachment 348058 [details] [diff] [review]
Fix
a191=beltzner
Attachment #348058 -
Flags: approval1.9.1? → approval1.9.1+
Comment 4•17 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/b258d282bb9b
Next time please follow instructions ("make sure you include a commit message
and an username in the attachment").
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b3
Updated•17 years ago
|
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•