summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 16:55:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 16:55:18 -0400
commitd0a664d102bb0886dbaf844b6857749f70702ea3 (patch)
tree4994ad85c9c743ed13346ba94daea47a389a9bfd /python
parent32e2d58d4372f34726b4de59e3b0cdc0540ad474 (diff)
downloadfork-ledger-d0a664d102bb0886dbaf844b6857749f70702ea3.tar.gz
fork-ledger-d0a664d102bb0886dbaf844b6857749f70702ea3.tar.bz2
fork-ledger-d0a664d102bb0886dbaf844b6857749f70702ea3.zip
Fixed several unused value and param warnings
Diffstat (limited to 'python')
-rw-r--r--python/py_scope.cc2
-rw-r--r--python/pyinterp.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/py_scope.cc b/python/py_scope.cc
index 51a72c59..55f779d2 100644
--- a/python/py_scope.cc
+++ b/python/py_scope.cc
@@ -59,7 +59,7 @@ namespace {
scope_wrapper(PyObject * self_) : self(self_) {}
- virtual expr_t::ptr_op_t lookup(const string& name) {
+ virtual expr_t::ptr_op_t lookup(const string&) {
return NULL;
}
};
diff --git a/python/pyinterp.cc b/python/pyinterp.cc
index 611a4033..cc6a5688 100644
--- a/python/pyinterp.cc
+++ b/python/pyinterp.cc
@@ -270,7 +270,7 @@ value_t python_interpreter_t::functor_t::operator()(call_scope_t& args)
}
return result;
}
- else if (PyObject * err = PyErr_Occurred()) {
+ else if (PyErr_Occurred()) {
PyErr_Print();
throw_(calc_error, "Failed call to Python function '" << name << "'");
} else {