From: Raymond Hettinger Date: Mon, 25 Jan 2016 06:15:20 +0000 (-0800) Subject: Fix compiler warning about obviously unreachable code. X-Git-Tag: v3.6.0a1~699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ce6885f8a5bc2cca1fb03fa0b0bd953407f3c25;p=python Fix compiler warning about obviously unreachable code. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 7ab534e07a..a6143c64d6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5411,10 +5411,6 @@ socket_inet_ntop(PyObject *self, PyObject *args) } else { return PyUnicode_FromString(retval); } - - /* NOTREACHED */ - PyErr_SetString(PyExc_RuntimeError, "invalid handling of inet_ntop"); - return NULL; } #elif defined(MS_WINDOWS)