summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-11-24 04:02:13 (GMT)
committerGuido van Rossum <guido@python.org>2003-11-24 04:02:13 (GMT)
commit0bba722fff2bac1bf6a03b994a0a9d516a413ab5 (patch)
tree478d3dae819946c02d817a9b1803d0e75fdb5911
parentc714d45bf537cbdc85c5de8a392012349e929f1e (diff)
downloadcpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.zip
cpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.tar.gz
cpython-0bba722fff2bac1bf6a03b994a0a9d516a413ab5.tar.bz2
Silence GCC warning when asserts are turned off.
-rw-r--r--Modules/gcmodule.c3
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 */