mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
bpo-40613: Remove compiler warning from _xxsubinterpretersmodule (GH-20069)
This commit is contained in:
parent
b809717c1e
commit
fa0a66e62d
1 changed files with 8 additions and 0 deletions
|
@ -329,6 +329,7 @@ _objsnapshot_clear(_objsnapshot *osn)
|
||||||
// PyMem_Free(osn);
|
// PyMem_Free(osn);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static int
|
static int
|
||||||
_objsnapshot_is_clear(_objsnapshot *osn)
|
_objsnapshot_is_clear(_objsnapshot *osn)
|
||||||
{
|
{
|
||||||
|
@ -336,6 +337,7 @@ _objsnapshot_is_clear(_objsnapshot *osn)
|
||||||
&& _rawstring_is_clear(&osn->modname)
|
&& _rawstring_is_clear(&osn->modname)
|
||||||
&& _rawstring_is_clear(&osn->clsname);
|
&& _rawstring_is_clear(&osn->clsname);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_objsnapshot_summarize(_objsnapshot *osn, _rawstring *rawbuf, const char *msg)
|
_objsnapshot_summarize(_objsnapshot *osn, _rawstring *rawbuf, const char *msg)
|
||||||
|
@ -597,6 +599,7 @@ _tbsnapshot_free(_tbsnapshot *tbs)
|
||||||
PyMem_Free(tbs);
|
PyMem_Free(tbs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static int
|
static int
|
||||||
_tbsnapshot_is_clear(_tbsnapshot *tbs)
|
_tbsnapshot_is_clear(_tbsnapshot *tbs)
|
||||||
{
|
{
|
||||||
|
@ -604,6 +607,7 @@ _tbsnapshot_is_clear(_tbsnapshot *tbs)
|
||||||
&& _rawstring_is_clear(&tbs->tbs_funcname)
|
&& _rawstring_is_clear(&tbs->tbs_funcname)
|
||||||
&& _rawstring_is_clear(&tbs->tbs_filename);
|
&& _rawstring_is_clear(&tbs->tbs_filename);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_tbsnapshot_from_pytb(_tbsnapshot *tbs, PyTracebackObject *pytb)
|
_tbsnapshot_from_pytb(_tbsnapshot *tbs, PyTracebackObject *pytb)
|
||||||
|
@ -748,6 +752,7 @@ _excsnapshot_free(_excsnapshot *es)
|
||||||
PyMem_Free(es);
|
PyMem_Free(es);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static int
|
static int
|
||||||
_excsnapshot_is_clear(_excsnapshot *es)
|
_excsnapshot_is_clear(_excsnapshot *es)
|
||||||
{
|
{
|
||||||
|
@ -758,6 +763,7 @@ _excsnapshot_is_clear(_excsnapshot *es)
|
||||||
&& es->es_msg == NULL
|
&& es->es_msg == NULL
|
||||||
&& _objsnapshot_is_clear(&es->es_object);
|
&& _objsnapshot_is_clear(&es->es_object);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_excsnapshot_get_exc_naive(_excsnapshot *es)
|
_excsnapshot_get_exc_naive(_excsnapshot *es)
|
||||||
|
@ -1085,6 +1091,7 @@ _sharedexception_free(_sharedexception *she)
|
||||||
PyMem_Free(she);
|
PyMem_Free(she);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static int
|
static int
|
||||||
_sharedexception_is_clear(_sharedexception *she)
|
_sharedexception_is_clear(_sharedexception *she)
|
||||||
{
|
{
|
||||||
|
@ -1092,6 +1099,7 @@ _sharedexception_is_clear(_sharedexception *she)
|
||||||
&& _excsnapshot_is_clear(&she->snapshot)
|
&& _excsnapshot_is_clear(&she->snapshot)
|
||||||
&& _rawstring_is_clear(&she->msg);
|
&& _rawstring_is_clear(&she->msg);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sharedexception_get_cause(_sharedexception *sharedexc)
|
_sharedexception_get_cause(_sharedexception *sharedexc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue