diff options
author | Thomas Heller <theller@ctypes.org> | 2009-09-19 10:04:54 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2009-09-19 10:04:54 (GMT) |
commit | d25fb2ff1f97e93209ad677a5a79c85dcba30f45 (patch) | |
tree | 2e89c91d0fd1bda26b531f881e667d6ac7807191 /Modules | |
parent | 52c1794b98c959dfc4aee069c8e9af9b6e89814e (diff) | |
download | cpython-d25fb2ff1f97e93209ad677a5a79c85dcba30f45.zip cpython-d25fb2ff1f97e93209ad677a5a79c85dcba30f45.tar.gz cpython-d25fb2ff1f97e93209ad677a5a79c85dcba30f45.tar.bz2 |
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 25cf956..c4f73ba 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -4012,14 +4012,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 @@ -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?"); |