Closed Bug 957884 Opened 7 years ago Closed 7 years ago

textured3d11.cpp(36) : warning C4715: 'mozilla::layers::SurfaceFormatToDXGIFormat' : not all control paths return a value

Categories

(Core :: Graphics: Layers, defect)

All
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Build warning, found when trying bug 957784:
{
gfx\layers\d3d11\textured3d11.cpp(36) : warning C4715: 'mozilla::layers::SurfaceFormatToDXGIFormat' : not all control paths return a value
}
This just makes us return a bogus UNKNOWN value (which is listed at the start of the enum, according to http://msdn.microsoft.com/en-us/library/windows/desktop/bb173059%28v=vs.85%29.aspx , which I ran across from searching the web for the enum typename.)
Attachment #8357500 - Flags: review?(nical.bugzilla)
Attachment #8357500 - Flags: review?(nical.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/dc2a2e09f121
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.