mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
satisfy the -Wall: remove two unused local variables and unused ins function
This commit is contained in:
parent
d88296d25a
commit
672fac0d65
1 changed files with 0 additions and 13 deletions
|
|
@ -64,8 +64,6 @@ newladobject(PyObject *arg)
|
|||
int fd, afmts, imode;
|
||||
char *mode;
|
||||
char *basedev;
|
||||
char *ctldev;
|
||||
char *opendev;
|
||||
|
||||
/* Check arg for r/w/rw */
|
||||
if (!PyArg_ParseTuple(arg, "s:open", &mode)) return NULL;
|
||||
|
|
@ -385,17 +383,6 @@ static PyMethodDef linuxaudiodev_methods[] = {
|
|||
{ 0, 0 },
|
||||
};
|
||||
|
||||
static int
|
||||
ins(PyObject *d, char *symbol, long value)
|
||||
{
|
||||
PyObject* v = PyInt_FromLong(value);
|
||||
if (!v || PyDict_SetItemString(d, symbol, v) < 0)
|
||||
return -1; /* triggers fatal error */
|
||||
|
||||
Py_DECREF(v);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
initlinuxaudiodev()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue