[Python-checkins] r51022 - python/branches/bcannon-sandboxing/Objects/object.c

brett.cannon python-checkins at python.org
Tue Aug 1 20:39:16 CEST 2006


Author: brett.cannon
Date: Tue Aug  1 20:39:15 2006
New Revision: 51022

Modified:
   python/branches/bcannon-sandboxing/Objects/object.c
Log:
Remove warning of unused variable in _PyObject_Del() when compiling without
--with-track-memory.


Modified: python/branches/bcannon-sandboxing/Objects/object.c
==============================================================================
--- python/branches/bcannon-sandboxing/Objects/object.c	(original)
+++ python/branches/bcannon-sandboxing/Objects/object.c	Tue Aug  1 20:39:15 2006
@@ -262,9 +262,7 @@
 void
 _PyObject_Del(void *op)
 {
-    PyObject *obj_ptr = (PyObject *)op;
-
-    PyObject_T_FREE(obj_ptr->ob_type->tp_name, op);
+    PyObject_T_FREE(((PyObject *)op)->ob_type->tp_name, op);
 }
 
 /* Implementation of PyObject_Print with recursion checking */


More information about the Python-checkins mailing list