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

RESOLVED FIXED in mozilla29

Status

()

defect
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

(Blocks 1 bug)

Trunk
mozilla29
All
Windows 7
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa-], )

Attachments

(1 attachment)

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: 6 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.