Closed Bug 839384 Opened 11 years ago Closed 11 years ago

Fix build warnings for DrawTargetCG

Categories

(Core :: Graphics, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

DrawTargetCG.h/cpp has these build warnings:
{
gfx/2d/DrawTargetCG.cpp:125:32: warning: field 'mSnapshot' will be initialized after field 'mCg' [-Wreorder]
gfx/2d/DrawTargetCG.h:154:10: warning: private field 'mIOSurfaceTexture' is not used [-Wunused-private-field]
}

Filing this bug on fixing those.
Attached patch fix (obsolete) — Splinter Review
Attachment #711690 - Flags: review?(jmuizelaar)
oh, I missed these warnings:
{
gfx/2d/DrawTargetCG.cpp:1032:41: warning: '&&' within '||' [-Wlogical-op-parentheses]
gfx/2d/DrawTargetCG.cpp:1032:41: note: place parentheses around the '&&' expression to silence this warning

gfx/2d/DrawTargetCG.cpp:1033:53: warning: '&&' within '||' [-Wlogical-op-parentheses]
/gfx/2d/DrawTargetCG.cpp:1033:53: note: place parentheses around the '&&' expression to silence this warning
}

Updated the patch to fix those as well.
Attachment #711690 - Attachment is obsolete: true
Attachment #711690 - Flags: review?(jmuizelaar)
Attachment #711693 - Flags: review?(jmuizelaar)
Attachment #711693 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/594944f54c72
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: