Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 672fac0

Browse files
committed
satisfy the -Wall: remove two unused local variables and unused ins function
1 parent d88296d commit 672fac0

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Modules/linuxaudiodev.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ newladobject(PyObject *arg)
6464
int fd, afmts, imode;
6565
char *mode;
6666
char *basedev;
67-
char *ctldev;
68-
char *opendev;
6967

7068
/* Check arg for r/w/rw */
7169
if (!PyArg_ParseTuple(arg, "s:open", &mode)) return NULL;
@@ -385,17 +383,6 @@ static PyMethodDef linuxaudiodev_methods[] = {
385383
{ 0, 0 },
386384
};
387385

388-
static int
389-
ins(PyObject *d, char *symbol, long value)
390-
{
391-
PyObject* v = PyInt_FromLong(value);
392-
if (!v || PyDict_SetItemString(d, symbol, v) < 0)
393-
return -1; /* triggers fatal error */
394-
395-
Py_DECREF(v);
396-
return 0;
397-
}
398-
399386
void
400387
initlinuxaudiodev()
401388
{

0 commit comments

Comments
 (0)