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

Skip to content

Commit 2f38f81

Browse files
Removed some unreachable break statements to silence SGI compiler.
1 parent 38b88c2 commit 2f38f81

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Python/ceval.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,15 +3049,13 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na)
30493049
Py_DECREF(args);
30503050
return result;
30513051
}
3052-
break;
30533052
case METH_NOARGS:
30543053
if (na == 0)
30553054
return (*meth)(self, NULL);
30563055
PyErr_Format(PyExc_TypeError,
30573056
"%.200s() takes no arguments (%d given)",
30583057
((PyCFunctionObject*)func)->m_ml->ml_name, na);
30593058
return NULL;
3060-
break;
30613059
case METH_O:
30623060
if (na == 1) {
30633061
PyObject *arg = EXT_POP(*pp_stack);
@@ -3069,7 +3067,6 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na)
30693067
"%.200s() takes exactly one argument (%d given)",
30703068
((PyCFunctionObject*)func)->m_ml->ml_name, na);
30713069
return NULL;
3072-
break;
30733070
default:
30743071
fprintf(stderr, "%.200s() flags = %d\n",
30753072
((PyCFunctionObject*)func)->m_ml->ml_name, flags);

0 commit comments

Comments
 (0)