summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-09-19 10:15:04 (GMT)
committerThomas Heller <theller@ctypes.org>2009-09-19 10:15:04 (GMT)
commit7e619c04619c327decc83872e5c9189c3bed9412 (patch)
tree71071b9cbbcf0ef8a9cc02520f05be5ed48ebdc8 /Modules
parentde2a107200e5073c7e3d6f58c88a407ac69c319d (diff)
downloadcpython-7e619c04619c327decc83872e5c9189c3bed9412.zip
cpython-7e619c04619c327decc83872e5c9189c3bed9412.tar.gz
cpython-7e619c04619c327decc83872e5c9189c3bed9412.tar.bz2
Merged revisions 74948 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74948 | thomas.heller | 2009-09-19 12:04:54 +0200 (Sa, 19 Sep 2009) | 1 line Remove unused variable and static function to fix compiler warnings. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 9840c8c..7e144f2 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -4012,14 +4012,6 @@ PyTypeObject CFuncPtr_Type = {
/*
Struct_Type
*/
-static int
-IBUG(char *msg)
-{
- PyErr_Format(PyExc_RuntimeError,
- "inconsistent state in CDataObject (%s)", msg);
- return -1;
-}
-
/*
This function is called to initialize a Structure or Union with positional
arguments. It calls itself recursively for all Structure or Union base
@@ -4090,12 +4082,9 @@ _init_pos_args(PyObject *self, PyTypeObject *type,
static int
Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
{
- StgDictObject *stgdict = PyObject_stgdict(self);
-
/* Optimization possible: Store the attribute names _fields_[x][0]
* in C accessible fields somewhere ?
*/
-
if (!PyTuple_Check(args)) {
PyErr_SetString(PyExc_TypeError,
"args not a tuple?");