Closed Bug 1298403 Opened 8 years ago Closed 8 years ago

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

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: froydnj, Unassigned)

References

Details

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   ^
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/857e5699df7b
Reorder fields to avoid clang-cl warning.
https://hg.mozilla.org/mozilla-central/rev/857e5699df7b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.