mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Remove unused variable and static function to fix compiler warnings.
This commit is contained in:
parent
52c1794b98
commit
d25fb2ff1f
1 changed files with 0 additions and 11 deletions
|
@ -4012,14 +4012,6 @@ PyTypeObject PyCFuncPtr_Type = {
|
||||||
/*
|
/*
|
||||||
Struct_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
|
This function is called to initialize a Structure or Union with positional
|
||||||
arguments. It calls itself recursively for all Structure or Union base
|
arguments. It calls itself recursively for all Structure or Union base
|
||||||
|
@ -4090,12 +4082,9 @@ _init_pos_args(PyObject *self, PyTypeObject *type,
|
||||||
static int
|
static int
|
||||||
Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
|
Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
StgDictObject *stgdict = PyObject_stgdict(self);
|
|
||||||
|
|
||||||
/* Optimization possible: Store the attribute names _fields_[x][0]
|
/* Optimization possible: Store the attribute names _fields_[x][0]
|
||||||
* in C accessible fields somewhere ?
|
* in C accessible fields somewhere ?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!PyTuple_Check(args)) {
|
if (!PyTuple_Check(args)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"args not a tuple?");
|
"args not a tuple?");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue