clang-cl warnings: fields initialized out of order in TextureD3D9.cpp

RESOLVED FIXED in Firefox 52

Status

()

defect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: froydnj, Unassigned)

Tracking

unspecified
mozilla52
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox52 fixed)

Details

Reporter

Description

3 years ago
clang-cl complains thusly:

16:23.04 c:/m-c/gfx/layers/d3d9/TextureD3D9.cpp(743,3):  warning: field 'mFormat' will be initialized after field 'mTexture' [-Wreorder]
16:23.04 : mFormat(aFormat)
16:23.04   ^
16:23.04 c:/m-c/gfx/layers/d3d9/TextureD3D9.cpp(745,3):  warning: field 'mHandle' will be initialized after field 'mDevice' [-Wreorder]
16:23.04 , mHandle(aHandle)
16:23.04   ^

Comment 1

3 years ago
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/857e5699df7b
Reorder fields to avoid clang-cl warning.

Comment 2

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/857e5699df7b
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.