Bug 1389851 - netwerk: Fix -Wunreachable-code-return warning in nsGIOProtocolHandler.cpp. r?karlt
netwerk/protocol/gio/nsGIOProtocolHandler.cpp:89:10: warning: 'return' will never be executed [-Wunreachable-code-return]
This `return NS_ERROR_FAILURE` statement at the end of this function is unreachable because all of the preceding switch statement's cases return.
MozReview-Commit-ID: 3qDu2IqTPrW
--- a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp
+++ b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp
@@ -80,18 +80,16 @@ MapGIOResult(gint code)
G_IO_ERROR_BUSY,
G_IO_ERROR_WOULD_MERGE,
G_IO_ERROR_TOO_MANY_OPEN_FILES
*/
// Make GCC happy
default:
return NS_ERROR_FAILURE;
}
-
- return NS_ERROR_FAILURE;
}
static nsresult
MapGIOResult(GError *result)
{
if (!result)
return NS_OK;
return MapGIOResult(result->code);