Closed
Bug 740515
Opened 13 years ago
Closed 13 years ago
nsView.cpp:990:32: warning: format ‘%p’ expects argument of type ‘void*’, but argument 5 has type ‘nsIFrame*’ [-Wformat]
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Build warning:
{
nsView.cpp:990:32: warning: format ‘%p’ expects argument of type ‘void*’, but argument 5 has type ‘nsIFrame*’ [-Wformat]
}
...which points to this code:
> 989 fprintf(out, " z=%d vis=%d frame=%p <\n",
> 990 mZIndex, mVis, mFrame);
http://mxr.mozilla.org/mozilla-central/source/view/src/nsView.cpp#989
which was added in bug 703260.
This just wants some static_cast<void*>() love (which is what we use elsewhere to suppress this warning). Silly [f]printf.
Attachment #610612 -
Flags: review?(bugs)
Updated•13 years ago
|
Attachment #610612 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 1•13 years ago
|
||
Target Milestone: --- → mozilla14
Comment 2•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•