Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid warning in default build
  • Loading branch information
colesbury committed Feb 13, 2024
commit 54491d7f8a52333bbd0ca684d44e8bf289e36fc0
3 changes: 1 addition & 2 deletions Modules/_testinternalcapi/test_critical_sections.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ test_critical_sections(PyObject *self, PyObject *Py_UNUSED(args))
Py_END_CRITICAL_SECTION_OPT();

// No-op
PyObject *null_object = NULL;
Py_BEGIN_CRITICAL_SECTION_OPT(null_object);
Py_BEGIN_CRITICAL_SECTION_OPT(NULL);
Py_END_CRITICAL_SECTION_OPT();

Py_DECREF(d2);
Expand Down