Commit 672fac0d authored by Jeremy Hylton's avatar Jeremy Hylton

satisfy the -Wall: remove two unused local variables and unused ins function

parent d88296d2
......@@ -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()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment