Skip to content

Commit 673a5c3

Browse files
Move/push
1 parent 67b70c1 commit 673a5c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Python/ceval.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,9 +1866,13 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
18661866
_PyStackRef *newargs;
18671867
PyObject *const *object_array = NULL;
18681868
#if defined(__GNUC__)
1869+
#pragma GCC diagnostic push
18691870
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
18701871
#endif
18711872
_PyStackRef stack_array[8];
1873+
#if defined(__GNUC__)
1874+
#pragma GCC diagnostic pop
1875+
#endif
18721876
if (has_dict) {
18731877
object_array = _PyStack_UnpackDict(tstate, _PyTuple_ITEMS(callargs), nargs, kwargs, &kwnames);
18741878
if (object_array == NULL) {
@@ -1909,9 +1913,6 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
19091913
else if (nargs > 8) {
19101914
PyMem_Free((void *)newargs);
19111915
}
1912-
#if defined(__GNUC__)
1913-
#pragma GCC diagnostic pop
1914-
#endif
19151916
/* No need to decref func here because the reference has been stolen by
19161917
_PyEvalFramePushAndInit.
19171918
*/

0 commit comments

Comments
 (0)