summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2011-02-07 18:34:51 +0000
committerGiampaolo Rodola <g.rodola@gmail.com>2011-02-07 18:34:51 +0000
commit54774ee207aba531c1ecd4a68b31bd1e093a239c (patch)
tree471b2f6645ee202c0c91c1bb5cb09da3bbec4890
parent3d3b1969d49a517dc276731fc22d97f6ca6a9416 (diff)
downloadpysendfile-54774ee207aba531c1ecd4a68b31bd1e093a239c.tar.gz
fix some compiler warnings
-rw-r--r--sendfilemodule.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sendfilemodule.c b/sendfilemodule.c
index de51586..cc2813b 100644
--- a/sendfilemodule.c
+++ b/sendfilemodule.c
@@ -323,14 +323,6 @@ struct module_state {
PyObject *error;
};
-
-static int
-ins(PyObject *module, char *symbol, long value)
-{
- return PyModule_AddIntConstant(module, symbol, value);
-}
-
-
#if PY_MAJOR_VERSION >= 3
#define GETSTATE(m) ((struct module_state*)PyModule_GetState(m))
#else
@@ -339,7 +331,6 @@ static struct module_state _state;
#endif
#if PY_MAJOR_VERSION >= 3
-
static int
sendfile_traverse(PyObject *m, visitproc visit, void *arg) {
Py_VISIT(GETSTATE(m)->error);
@@ -396,7 +387,6 @@ void initsendfile(void)
if (module == NULL) {
INITERROR;
}
- struct module_state *st = GETSTATE(module);
#if PY_MAJOR_VERSION >= 3
return module;
#endif