Skip to content

Commit e626f0a

Browse files
Ignore instead
1 parent c20cfee commit e626f0a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Python/ceval.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,11 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
18631863
{
18641864
bool has_dict = (kwargs != NULL && PyDict_GET_SIZE(kwargs) > 0);
18651865
PyObject *kwnames = NULL;
1866-
_PyStackRef *newargs = NULL;
1866+
_PyStackRef *newargs;
18671867
PyObject *const *object_array = NULL;
1868+
#elif defined(__clang__)
1869+
#pragma clang diagnostic ignored "-Wmaybe-uninitialized"
1870+
#endif
18681871
_PyStackRef stack_array[8];
18691872
if (has_dict) {
18701873
object_array = _PyStack_UnpackDict(tstate, _PyTuple_ITEMS(callargs), nargs, kwargs, &kwnames);
@@ -1906,6 +1909,9 @@ _PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
19061909
else if (nargs > 8) {
19071910
PyMem_Free((void *)newargs);
19081911
}
1912+
#elif defined(__clang__)
1913+
#pragma clang diagnostic pop
1914+
#endif
19091915
/* No need to decref func here because the reference has been stolen by
19101916
_PyEvalFramePushAndInit.
19111917
*/

0 commit comments

Comments
 (0)