Closed
Bug 650080
Opened 15 years ago
Closed 15 years ago
nsContentEventHandler.cpp:867: warning: unused variable 'pEventWidget'
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: dholbert, Assigned: Ms2ger)
References
()
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
|
818 bytes,
patch
|
smichaud
:
review+
|
Details | Diff | Splinter Review |
Filing bug on this warning:
> nsContentEventHandler.cpp:867: warning: unused variable 'pEventWidget'
Code in question (added in bug 627649):
> 856 if (contentUnderMouse) {
[...]
> 867 nsIWidget* pEventWidget = aEvent->widget.get();
> 868 }
The variable is created right at the end of an "if" check, and it immediately goes out of scope without ever being used:
I'm assuming line 867 can just be removed entirely. smichaud, is that correct?
| Reporter | ||
Comment 1•15 years ago
|
||
Meant to link to source in MXR:
http://mxr.mozilla.org/mozilla-central/source/content/events/src/nsContentEventHandler.cpp#867
and cset that added this:
http://hg.mozilla.org/mozilla-central/diff/75082063f8e6/content/events/src/nsContentEventHandler.cpp#l1.68
| Reporter | ||
Comment 2•15 years ago
|
||
...and meant to CC smichaud for an answer to the end of comment 0.
Comment 3•15 years ago
|
||
> I'm assuming line 867 can just be removed entirely. smichaud, is
> that correct?
Yes.
It's something left over from my debug build, which I forgot to
remove.
Thanks for catching this, and sorry for the confusion.
| Assignee | ||
Comment 4•15 years ago
|
||
And I even had a patch for it!
| Assignee | ||
Updated•15 years ago
|
Attachment #526082 -
Flags: review? → review?(smichaud)
Comment 5•15 years ago
|
||
Comment on attachment 526082 [details] [diff] [review]
Patch v1
Looks good to me :-)
Updated•15 years ago
|
Attachment #526082 -
Flags: review?(smichaud) → review+
| Assignee | ||
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•