Closed Bug 581474 Opened 9 years ago Closed 8 years ago

possible uninitialized variable use in nsXPCWrappedJS::GetNewOrUsed

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: jdm, Assigned: atulagrwl)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

js/src/xpconnect/src/xpcwrappedjs.cpp: In static member function ‘static nsresult nsXPCWrappedJS::GetNewOrUsed(XPCCallContext&, JSObject*, const nsIID&, nsISupports*, nsXPCWrappedJS**)’:
js/src/xpconnect/src/xpcwrappedjs.cpp:307: warning: ‘root’ may be used uninitialized in this function
Whiteboard: [build_warning]
Please note I have not tested this patch. Will do the testing once my unix box build is complete.
Assignee: nobody → atulagrwl
Status: NEW → ASSIGNED
Attachment #557288 - Flags: review?(mrbkap)
Comment on attachment 557288 [details] [diff] [review]
Patch v1 to fix warning

I look forward to days when GCC actually gets its control flow graph to a point where it doesn't give false positives like this.
Attachment #557288 - Flags: review?(mrbkap) → review+
Keywords: checkin-needed
In my queue :-)
Keywords: checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/b435b37b32c7
Flags: in-testsuite-
Target Milestone: --- → mozilla9
http://hg.mozilla.org/mozilla-central/rev/b435b37b32c7
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.