summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2006-05-23 19:25:52 (GMT)
committerBob Ippolito <bob@redivi.com>2006-05-23 19:25:52 (GMT)
commit4de3f998bf1aee2434dee6025480665c3c72ccb2 (patch)
tree75a062d45e3533ffcf80d04681b7909c6d15ecaa
parent232f3c91f90655b10f3a6ec6d5b00eab37850de9 (diff)
downloadcpython-4de3f998bf1aee2434dee6025480665c3c72ccb2.zip
cpython-4de3f998bf1aee2434dee6025480665c3c72ccb2.tar.gz
cpython-4de3f998bf1aee2434dee6025480665c3c72ccb2.tar.bz2
fix linking issue, warnings, in struct
-rw-r--r--Modules/_struct.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 838e4e4..04c90e0 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -45,8 +45,6 @@ typedef struct {
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 @@ static PyObject *
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 @@ s_init(PyObject *self, PyObject *args, PyObject *kwds)
static void
s_dealloc(PyStructObject *s)
{
- int sts = 0;
if (s->weakreflist != NULL)
PyObject_ClearWeakRefs((PyObject *)s);
if (s->s_codes != NULL) {