mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689)
bpo-38392, bpo-38426: Fix a compiler warning in gcmodule.c. Fix also a typo in PYMEM_DEADBYTE macro comment.
This commit is contained in:
parent
09895c27cd
commit
a5447735c3
2 changed files with 4 additions and 1 deletions
|
|
@ -1921,6 +1921,8 @@ _PyGC_Dump(PyGC_Head *g)
|
|||
_PyObject_Dump(FROM_GC(g));
|
||||
}
|
||||
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
static int
|
||||
visit_validate(PyObject *op, void *parent_raw)
|
||||
{
|
||||
|
|
@ -1931,6 +1933,7 @@ visit_validate(PyObject *op, void *parent_raw)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* extension modules might be compiled with GC support so these
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue