The default bug view has changed. See this FAQ.

warning: ‘res’ may be used uninitialized in nsHTMLAbsPosition.cpp

RESOLVED FIXED in mozilla16

Status

()

Core
Editor
--
trivial
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: ayg, Assigned: ayg)

Tracking

Trunk
mozilla16
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

/mnt/extra/checkouts/mozilla-central/editor/libeditor/html/nsHTMLAbsPosition.cpp: In member function ‘virtual nsresult nsHTMLEditor::AbsolutelyPositionElement(nsIDOMElement*, bool)’:
/mnt/extra/checkouts/mozilla-central/editor/libeditor/html/nsHTMLAbsPosition.cpp:492:12: warning: ‘res’ may be used uninitialized in this function [-Wuninitialized]
Flags: in-testsuite-
Created attachment 630946 [details] [diff] [review]
Patch v1

FWIW, the warning looks legit: res will be returned uninitialized if aEnabled && parentNode->GetChildCount() != 1.  Try: https://tbpl.mozilla.org/?tree=Try&rev=698df2d0749b
Attachment #630946 - Flags: review?(ehsan)

Updated

5 years ago
Attachment #630946 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e12ea5cc535
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/3e12ea5cc535

(Merged by Ed Morley)
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.