Skip to content

Commit d958a75

Browse files
committed
Fix clang compiler warning
1 parent d879d3b commit d958a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,7 @@ format_unraisable_v(const char *format, va_list va, PyObject *obj)
16561656
_Py_EnsureTstateNotNULL(tstate);
16571657

16581658
PyObject *err_msg = NULL;
1659+
PyObject *hook = NULL;
16591660
PyObject *exc_type, *exc_value, *exc_tb;
16601661
_PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb);
16611662

@@ -1692,7 +1693,6 @@ format_unraisable_v(const char *format, va_list va, PyObject *obj)
16921693
}
16931694
}
16941695

1695-
PyObject *hook = NULL;
16961696
PyObject *hook_args = make_unraisable_hook_args(
16971697
tstate, exc_type, exc_value, exc_tb, err_msg, obj);
16981698
if (hook_args == NULL) {

0 commit comments

Comments
 (0)