From 1ce6885f8a5bc2cca1fb03fa0b0bd953407f3c25 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 24 Jan 2016 22:15:20 -0800 Subject: Fix compiler warning about obviously unreachable code. --- Modules/socketmodule.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 7ab534e..a6143c6 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) -- cgit v0.12