Closed Bug 739706 Opened 12 years ago Closed 12 years ago

gfxFont.cpp compiler warnings on OSX

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: jtd, Assigned: jtd)

Details

Attachments

(1 file)

Under OSX, gfxFont.cpp generates compile warnings:

/builds/mozcentral/gfx/thebes/gfxFont.cpp: In member function ‘bool gfxFont::SplitAndInitTextRun(gfxContext*, gfxTextRun*, const T*, PRUint32, PRUint32, PRInt32) [with T = PRUint8]’:
/builds/mozcentral/gfx/thebes/gfxFont.cpp:3381:   instantiated from ‘void gfxFontGroup::InitScriptRun(gfxContext*, gfxTextRun*, const T*, PRUint32, PRUint32, PRInt32) [with T = PRUint8]’
/builds/mozcentral/gfx/thebes/gfxFont.cpp:3282:   instantiated from ‘void gfxFontGroup::InitTextRun(gfxContext*, gfxTextRun*, const T*, PRUint32) [with T = PRUint8]’
/builds/mozcentral/gfx/thebes/gfxFont.cpp:3206:   instantiated from here
/builds/mozcentral/gfx/thebes/gfxFont.cpp:2216: warning: comparison is always false due to limited range of data type
/builds/mozcentral/gfx/thebes/gfxFont.cpp:2294: warning: comparison is always true due to limited range of data type
Attachment #609804 - Flags: review?(jfkthame)
Comment on attachment 609804 [details] [diff] [review]
patch, fix warnings

Review of attachment 609804 [details] [diff] [review]:
-----------------------------------------------------------------

Seems fine.
Attachment #609804 - Flags: review?(jfkthame) → review+
https://hg.mozilla.org/mozilla-central/rev/7cf8fc503806
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: