diff --git a/src/accountmodel.cpp b/src/accountmodel.cpp index 8726cac1593a0cb7fa78dca6b0de90dacab97a7c..322015540b7aa7b2254a3086953a54951818e173 100644 --- a/src/accountmodel.cpp +++ b/src/accountmodel.cpp @@ -270,6 +270,7 @@ Account::RegistrationState AccountModelPrivate::fromDaemonName(const QString& st ///Account status changed void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const QString& registration_state, unsigned code, const QString& status) { + Q_UNUSED(registration_state); Account* a = q_ptr->getById(account.toLatin1()); //TODO move this to AccountStatusModel @@ -397,6 +398,7 @@ void AccountModelPrivate::slotVolatileAccountDetailsChange(const QString& accoun ///When a Ring-DHT trust request arrive void AccountModelPrivate::slotIncomingTrustRequest(const QString& accountId, const QString& hash, const QByteArray& payload, time_t time) { + Q_UNUSED(payload); qDebug() << "INCOMING REQUEST" << accountId << hash << time; Account* a = q_ptr->getById(accountId.toLatin1()); diff --git a/src/categorizedbookmarkmodel.cpp b/src/categorizedbookmarkmodel.cpp index c5803f6a90417c0d6cc6db0018951f649c9df626..f007481c228b99958441eea23d59f2efd54bcf6d 100644 --- a/src/categorizedbookmarkmodel.cpp +++ b/src/categorizedbookmarkmodel.cpp @@ -189,7 +189,6 @@ void CategorizedBookmarkModel::reloadCategories() endInsertRows(); //This a proxy, so the items already exist elsewhere - const int currentSize = PhoneDirectoryModel::instance()->d_ptr->m_lPopularityIndex.size(); beginInsertRows(index(item->m_Index,0), item->m_lChildren.size(), item->m_lChildren.size()); endInsertRows(); diff --git a/src/collectioninterface.hpp b/src/collectioninterface.hpp index c4f38c5f8da0aceb0660aa6720adf65ca81a8322..bbfd15698ad30ae554595d599a4000437bce85eb 100644 --- a/src/collectioninterface.hpp +++ b/src/collectioninterface.hpp @@ -91,6 +91,7 @@ CollectionEditor<T>* CollectionInterface::editor() const template<class T> bool CollectionInterface::attachExtension(bool enable) { + Q_UNUSED(enable); //FIXME for now all extensions are considered active return true; } diff --git a/src/daemoncertificatecollection.cpp b/src/daemoncertificatecollection.cpp index 45642a0576878e6f3cccc7cc7156e3cc1b1dcd5f..d7674734071a6c674b44e24fed60677a1196edab 100644 --- a/src/daemoncertificatecollection.cpp +++ b/src/daemoncertificatecollection.cpp @@ -101,11 +101,14 @@ void DaemonCertificateCollectionPrivate::slotCertificatePinned(const QString& id void DaemonCertificateCollectionPrivate::slotCertificateExpired(const QString& id) { + Q_UNUSED(id); //qDebug() << "\n\nCERTIFICATE EXPIRED" << id; } void DaemonCertificateCollectionPrivate::slotCertificatePathPinned(const QString& path, const QStringList& certIds) { + Q_UNUSED(path); + Q_UNUSED(certIds); //Create a new collection if it is a directory or size > 1 //qDebug() << "\n\nSIGNAL CERTIFICATE PATH PINNING" << path << certIds; } @@ -126,7 +129,7 @@ bool DaemonCertificateCollection::load() //qDebug() << "\n\nLOADING CERTS" << d_ptr->m_pAccount << certs; for (const QString& id : certs) - Certificate* cert = CertificateModel::instance()->getCertificateFromId(id,d_ptr->m_pAccount,d_ptr->m_pAccount->id()+"_"+mode); + CertificateModel::instance()->getCertificateFromId(id,d_ptr->m_pAccount,d_ptr->m_pAccount->id()+"_"+mode); return true; } @@ -201,6 +204,7 @@ bool DaemonCertificateEditor::save( const Certificate* item) bool DaemonCertificateEditor::remove( const Certificate* item) { //TODO + Q_UNUSED(item); return false; } diff --git a/src/localtextrecordingcollection.cpp b/src/localtextrecordingcollection.cpp index 88b82a1d9180bee77971581be5423e102e40bb45..76ed2de029f0998563862bbe070f798e17c32e62 100644 --- a/src/localtextrecordingcollection.cpp +++ b/src/localtextrecordingcollection.cpp @@ -224,6 +224,7 @@ bool LocalTextRecordingCollection::listId(std::function<void(const QList<Element bool LocalTextRecordingCollection::fetch(const Element& e) { + Q_UNUSED(e); return false; } diff --git a/src/media/recordingmodel.cpp b/src/media/recordingmodel.cpp index 77496406a20b65597b6e11bb5758833409a5c7a0..a2b7a2d7164d631b36d1d4b539ec9af6fc47f6d9 100644 --- a/src/media/recordingmodel.cpp +++ b/src/media/recordingmodel.cpp @@ -95,6 +95,7 @@ d_ptr(new RecordingModelPrivate(this)) d_ptr->m_pTextRecordingCollection->listId([](const QList<CollectionInterface::Element>& e) { //TODO + Q_UNUSED(e); }); } diff --git a/src/pendingtrustrequestmodel.cpp b/src/pendingtrustrequestmodel.cpp index 0a58caa144409940bb5056aa50fb8e47a99e4854..5833a540cf7800990d3007f8d37b3085e3f6a06c 100644 --- a/src/pendingtrustrequestmodel.cpp +++ b/src/pendingtrustrequestmodel.cpp @@ -80,6 +80,7 @@ int PendingTrustRequestModel::columnCount( const QModelIndex& parent ) const Qt::ItemFlags PendingTrustRequestModel::flags( const QModelIndex& index ) const { + Q_UNUSED(index); return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } diff --git a/src/qtwrapper/configurationmanager_wrap.h b/src/qtwrapper/configurationmanager_wrap.h index cf4125268f9f468bf2b64b6c0524ac892916a8f6..fbacabc52d2cc9121767fba261215cc88c2d7a79 100644 --- a/src/qtwrapper/configurationmanager_wrap.h +++ b/src/qtwrapper/configurationmanager_wrap.h @@ -608,7 +608,7 @@ public Q_SLOTS: // METHODS bool setCodecDetails(const QString& accountId, unsigned int codecId, const MapStringString& details) { - DRing::setCodecDetails(accountId.toStdString(), codecId, convertMap(details)); + return DRing::setCodecDetails(accountId.toStdString(), codecId, convertMap(details)); } Q_SIGNALS: // SIGNALS