mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Removing warnings found by gcc -Wall
This commit is contained in:
parent
92a69138b3
commit
cf703f04ad
2 changed files with 9 additions and 4 deletions
|
|
@ -1123,6 +1123,10 @@ _PyTrash_deposit_object(PyObject *op)
|
|||
typecode = Py_TRASHCAN_FRAME;
|
||||
else if (PyTraceBack_Check(op))
|
||||
typecode = Py_TRASHCAN_TRACEBACK;
|
||||
else /* We have a bug here -- those are the only types in GC */ {
|
||||
Py_FatalError("Type not supported in GC -- internal bug");
|
||||
return; /* pacify compiler -- execution never here */
|
||||
}
|
||||
op->ob_refcnt = typecode;
|
||||
|
||||
op->ob_type = (PyTypeObject*)_PyTrash_delete_later;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue