diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-11 20:30:05 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-11 20:30:05 (GMT) |
commit | 672fac0d65327f6f39013d34dc196ac010e86acd (patch) | |
tree | 91da34645d3805cb5af69cacd89a3219765262ad /Modules/linuxaudiodev.c | |
parent | d88296d25a07ae5b6d53021a3954e90a3048601c (diff) | |
download | cpython-672fac0d65327f6f39013d34dc196ac010e86acd.zip cpython-672fac0d65327f6f39013d34dc196ac010e86acd.tar.gz cpython-672fac0d65327f6f39013d34dc196ac010e86acd.tar.bz2 |
satisfy the -Wall: remove two unused local variables and unused ins function
Diffstat (limited to 'Modules/linuxaudiodev.c')
-rw-r--r-- | Modules/linuxaudiodev.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c index e52e242..6a1c5ff 100644 --- a/Modules/linuxaudiodev.c +++ b/Modules/linuxaudiodev.c @@ -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() { |