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

This commit is contained in:
Jeremy Hylton 2000-07-11 20:30:05 +00:00
parent d88296d25a
commit 672fac0d65

View file

@ -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()
{