[Python-checkins] r46148 - python/trunk/Modules/_struct.c

bob.ippolito python-checkins at python.org
Tue May 23 21:25:52 CEST 2006


Author: bob.ippolito
Date: Tue May 23 21:25:52 2006
New Revision: 46148

Modified:
   python/trunk/Modules/_struct.c
Log:
fix linking issue, warnings, in struct

Modified: python/trunk/Modules/_struct.c
==============================================================================
--- python/trunk/Modules/_struct.c	(original)
+++ python/trunk/Modules/_struct.c	Tue May 23 21:25:52 2006
@@ -45,8 +45,6 @@
 	PyObject *weakreflist; /* List of weak references */
 } PyStructObject;
 
-PyAPI_DATA(PyTypeObject) PyStruct_Type;
-
 #define PyStruct_Check(op) PyObject_TypeCheck(op, &PyStruct_Type)
 #define PyStruct_CheckExact(op) ((op)->ob_type == &PyStruct_Type)
 
@@ -1063,7 +1061,6 @@
 s_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 {
 	PyObject *self;
-	static PyObject *not_yet_string;
 
 	assert(type != NULL && type->tp_alloc != NULL);
 
@@ -1104,7 +1101,6 @@
 static void
 s_dealloc(PyStructObject *s)
 {
-	int sts = 0;
 	if (s->weakreflist != NULL)
 		PyObject_ClearWeakRefs((PyObject *)s);
 	if (s->s_codes != NULL) {


More information about the Python-checkins mailing list