diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-04-01 17:08:13 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:08 -0300 |
commit | 0cb14ebf352b4174be9e60f47574aee432e35a1d (patch) | |
tree | 167e08aa97fe3b610f5cd176e304506f29fb01db /libpyside | |
parent | fab79738ac6644f065740ac58694d2c58ee3a9f0 (diff) |
Remove unused variables and warnings when using gcc 4.6.
Diffstat (limited to 'libpyside')
-rw-r--r-- | libpyside/globalreceiver.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libpyside/globalreceiver.cpp b/libpyside/globalreceiver.cpp index c75ef905a..a9390d73d 100644 --- a/libpyside/globalreceiver.cpp +++ b/libpyside/globalreceiver.cpp @@ -225,14 +225,12 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args) } Shiboken::GilState gil; - int numArgs; PyObject* retval = 0; PyObject* callback = data->callback(); if (m_shortCircuitSlots.contains(id)) { retval = PyObject_CallObject(callback, reinterpret_cast<PyObject*>(args[1])); } else { QList<QByteArray> paramTypes = slot.parameterTypes(); - numArgs = paramTypes.count(); Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count())); for (int i = 0, max = paramTypes.count(); i < max; ++i) { PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]); |