[Python-checkins] cpython: Fix compiler warning about obviously unreachable code.

raymond.hettinger python-checkins at python.org
Mon Jan 25 01:15:26 EST 2016


https://hg.python.org/cpython/rev/6db40a9955dc
changeset:   100062:6db40a9955dc
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Jan 24 22:15:20 2016 -0800
summary:
  Fix compiler warning about obviously unreachable code.

files:
  Modules/socketmodule.c |  4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5411,10 +5411,6 @@
     } else {
         return PyUnicode_FromString(retval);
     }
-
-    /* NOTREACHED */
-    PyErr_SetString(PyExc_RuntimeError, "invalid handling of inet_ntop");
-    return NULL;
 }
 
 #elif defined(MS_WINDOWS)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list