Closed Bug 464788 Opened 17 years ago Closed 17 years ago

Fix compile warnings in XPConnect

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9.1b3

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

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}.
Attached patch FixSplinter Review
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #348058 - Flags: superreview?(jst)
Attachment #348058 - Flags: review?(jst)
Attachment #348058 - Flags: superreview?(jst)
Attachment #348058 - Flags: superreview+
Attachment #348058 - Flags: review?(jst)
Attachment #348058 - Flags: review+
Comment on attachment 348058 [details] [diff] [review] Fix This can wait until after the beta.
Attachment #348058 - Flags: approval1.9.1?
Comment on attachment 348058 [details] [diff] [review] Fix a191=beltzner
Attachment #348058 - Flags: approval1.9.1? → approval1.9.1+
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
Keywords: fixed1.9.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: