From 0cb14ebf352b4174be9e60f47574aee432e35a1d Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Fri, 1 Apr 2011 17:08:13 -0300 Subject: Remove unused variables and warnings when using gcc 4.6. --- libpyside/globalreceiver.cpp | 2 -- 1 file changed, 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(args[1])); } else { QList 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]); -- cgit v1.2.3