init list order warning in nsPresContext (nsPresContext::mPPScale’ will be initialized after ‘PRInt32 nsPresContext::mMinFontSize’)

RESOLVED FIXED in mozilla6

Status

()

Core
Layout
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

Trunk
mozilla6
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [build_warning])

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
../../../mozilla/layout/base/nsPresContext.h: In constructor ‘nsPresContext::nsPresContext(nsIDocument*, nsPresContext::nsPresContextType)’:
../../../mozilla/layout/base/nsPresContext.h:1105:9: warning: ‘nsPresContext::mPPScale’ will be initialized after
../../../mozilla/layout/base/nsPresContext.h:1074:11: warning:   ‘PRInt32 nsPresContext::mMinFontSize’
../../../mozilla/layout/base/nsPresContext.cpp:187:1: warning:   when initialized here
(Assignee)

Comment 1

6 years ago
Created attachment 534465 [details] [diff] [review]
fix: reorder init list

I've seen this fly by in too many of my builds, so I decided to fix it. :)

Patch just bumps the "mMinFontSize" back before "mTextZoom", to match the ordering in the .h file.
Assignee: nobody → dholbert
(Assignee)

Updated

6 years ago
Attachment #534465 - Flags: review?(roc)
Comment on attachment 534465 [details] [diff] [review]
fix: reorder init list

Review of attachment 534465 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #534465 - Flags: review?(roc) → review+
(Assignee)

Comment 3

6 years ago
http://hg.mozilla.org/mozilla-central/rev/db38a9fdd271
Status: NEW → RESOLVED
Last Resolved: 6 years ago
OS: Linux → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.