Fixing "control reaches end of non-void function" compile warning.
Warning is benign in this case, and the returns won't ever actually be hit. BUG=chromium:697060 Review-Url: https://codereview.webrtc.org/2726633004 Cr-Commit-Position: refs/heads/master@{#16926}
This commit is contained in:
parent
340e3fd59f
commit
3c8771e929
@ -28,8 +28,9 @@ std::string MediaTypeToString(MediaType type) {
|
||||
case MEDIA_TYPE_DATA:
|
||||
return kMediaTypeData;
|
||||
}
|
||||
// Not reachable; avoids compile warning.
|
||||
FATAL();
|
||||
// Not reachable; avoids compile warning.
|
||||
return "";
|
||||
}
|
||||
|
||||
MediaType MediaTypeFromString(const std::string& type_str) {
|
||||
@ -39,9 +40,10 @@ MediaType MediaTypeFromString(const std::string& type_str) {
|
||||
return MEDIA_TYPE_VIDEO;
|
||||
} else if (type_str == kMediaTypeData) {
|
||||
return MEDIA_TYPE_DATA;
|
||||
} else {
|
||||
FATAL();
|
||||
}
|
||||
FATAL();
|
||||
// Not reachable; avoids compile warning.
|
||||
return static_cast<MediaType>(-1);
|
||||
}
|
||||
|
||||
} // namespace cricket
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user