diff options
author | Thomas Heller <theller@ctypes.org> | 2009-09-19 10:24:07 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2009-09-19 10:24:07 (GMT) |
commit | 313935ca7dd409d662b17fb9ac1e0ad9bbb04102 (patch) | |
tree | 23a0a4434be770f0acdbef845009b184956c9f2d /Modules | |
parent | 08d71be92cc8408ef970aad2f272461f513c9aee (diff) | |
download | cpython-313935ca7dd409d662b17fb9ac1e0ad9bbb04102.zip cpython-313935ca7dd409d662b17fb9ac1e0ad9bbb04102.tar.gz cpython-313935ca7dd409d662b17fb9ac1e0ad9bbb04102.tar.bz2 |
Merged revisions 74949 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r74949 | thomas.heller | 2009-09-19 12:12:45 +0200 (Sa, 19 Sep 2009) | 9 lines
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.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 40cf480..169585b 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3931,14 +3931,6 @@ PyTypeObject PyCFuncPtr_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 @@ -4009,12 +4001,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?"); |