Closed Bug 780728 Opened 7 years ago Closed 7 years ago

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

Categories

(Core :: Layout, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #649426 - Flags: review?(matt.woodrow)
Attachment #649426 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/mozilla-central/rev/0bd439a357b7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.