nsCanvasFrame.cpp:212:13: warning: variable ‘pixelRect’ set but not used [-Wunused-but-set-variable]

RESOLVED FIXED in mozilla17

Status

()

Core
Layout
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks: 1 bug)

Trunk
mozilla17
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Newish build warning:

{
layout/generic/nsCanvasFrame.cpp: In member function ‘virtual void nsDisplayCanvasBackground::Paint(nsDisplayListBuilder*, nsRenderingContext*)’:
layout/generic/nsCanvasFrame.cpp:212:13: warning: variable ‘pixelRect’ set but not used [-Wunused-but-set-variable]
}

This variable was added in this cset for Bug 539356...
  https://hg.mozilla.org/mozilla-central/rev/7a376ff3ae84
...but it's never used after its value's been set, as shown by this mxr search:
  https://mxr.mozilla.org/mozilla-central/search?string=pixelRect
Created attachment 649426 [details] [diff] [review]
fix
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #649426 - Flags: review?(matt.woodrow)
Attachment #649426 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0bd439a357b7
Target Milestone: --- → mozilla17
https://hg.mozilla.org/mozilla-central/rev/0bd439a357b7
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.