Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ce6885

Browse files
committed
Fix compiler warning about obviously unreachable code.
1 parent 306d6b1 commit 1ce6885

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Modules/socketmodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,10 +5411,6 @@ socket_inet_ntop(PyObject *self, PyObject *args)
54115411
} else {
54125412
return PyUnicode_FromString(retval);
54135413
}
5414-
5415-
/* NOTREACHED */
5416-
PyErr_SetString(PyExc_RuntimeError, "invalid handling of inet_ntop");
5417-
return NULL;
54185414
}
54195415

54205416
#elif defined(MS_WINDOWS)

0 commit comments

Comments
 (0)