Mercurial > cpython-lru_cache-weakref
diff Objects/object.c @ 13861:f3d5f71ccbb4 legacy-trunk
Removing warnings found by gcc -Wall
| author | Moshe Zadka <moshez@math.huji.ac.il> |
|---|---|
| date | Fri, 04 Aug 2000 15:36:13 +0000 |
| parents | 59f8cedcf049 |
| children | 4d16c8dd899c |
line wrap: on
line diff
--- a/Objects/object.c Fri Aug 04 15:25:58 2000 +0000 +++ b/Objects/object.c Fri Aug 04 15:36:13 2000 +0000 @@ -1123,6 +1123,10 @@ 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;
