diff options
author | Guido van Rossum <guido@python.org> | 2003-11-24 04:02:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-11-24 04:02:13 (GMT) |
commit | 0bba722fff2bac1bf6a03b994a0a9d516a413ab5 (patch) | |
tree | 478d3dae819946c02d817a9b1803d0e75fdb5911 /Modules/gcmodule.c | |
parent | c714d45bf537cbdc85c5de8a392012349e929f1e (diff) | |
download | cpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.zip cpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.tar.gz cpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.tar.bz2 |
Silence GCC warning when asserts are turned off.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 7976b40..f92358b 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -533,11 +533,10 @@ release_weakrefs(PyGC_Head *wr_callbacks, PyGC_Head *old) while (! gc_list_is_empty(wr_callbacks)) { PyGC_Head *gc = wr_callbacks->gc.gc_next; PyObject *op = FROM_GC(gc); - PyWeakReference *wr = (PyWeakReference *)op; assert(IS_REACHABLE(op)); assert(PyWeakref_Check(op)); - assert(wr->wr_callback != NULL); + assert(((PyWeakReference *)op)->wr_callback != NULL); Py_DECREF(op); if (wr_callbacks->gc.gc_next == gc) { /* object is still alive -- move it */ |