Skip to content
Snippets Groups Projects
Commit 4f29687c authored by Alexandre Lision's avatar Alexandre Lision Committed by Guillaume Roguez
Browse files

build: fix most of warnings


- unnused vars: add Q_UNUSED when necessary
- API disruption: return something in ConfigurationManagerInterface::setCodecDetails()
- remove unused code

Issue: #75334
Change-Id: Ib43098e01bd276b6d5a2e1538ae6e7720500aed1
Signed-off-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent c09766a0
Branches
Tags
No related merge requests found
...@@ -270,6 +270,7 @@ Account::RegistrationState AccountModelPrivate::fromDaemonName(const QString& st ...@@ -270,6 +270,7 @@ Account::RegistrationState AccountModelPrivate::fromDaemonName(const QString& st
///Account status changed ///Account status changed
void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const QString& registration_state, unsigned code, const QString& status) 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()); Account* a = q_ptr->getById(account.toLatin1());
//TODO move this to AccountStatusModel //TODO move this to AccountStatusModel
...@@ -397,6 +398,7 @@ void AccountModelPrivate::slotVolatileAccountDetailsChange(const QString& accoun ...@@ -397,6 +398,7 @@ void AccountModelPrivate::slotVolatileAccountDetailsChange(const QString& accoun
///When a Ring-DHT trust request arrive ///When a Ring-DHT trust request arrive
void AccountModelPrivate::slotIncomingTrustRequest(const QString& accountId, const QString& hash, const QByteArray& payload, time_t time) void AccountModelPrivate::slotIncomingTrustRequest(const QString& accountId, const QString& hash, const QByteArray& payload, time_t time)
{ {
Q_UNUSED(payload);
qDebug() << "INCOMING REQUEST" << accountId << hash << time; qDebug() << "INCOMING REQUEST" << accountId << hash << time;
Account* a = q_ptr->getById(accountId.toLatin1()); Account* a = q_ptr->getById(accountId.toLatin1());
......
...@@ -189,7 +189,6 @@ void CategorizedBookmarkModel::reloadCategories() ...@@ -189,7 +189,6 @@ void CategorizedBookmarkModel::reloadCategories()
endInsertRows(); endInsertRows();
//This a proxy, so the items already exist elsewhere //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()); beginInsertRows(index(item->m_Index,0), item->m_lChildren.size(), item->m_lChildren.size());
endInsertRows(); endInsertRows();
......
...@@ -91,6 +91,7 @@ CollectionEditor<T>* CollectionInterface::editor() const ...@@ -91,6 +91,7 @@ CollectionEditor<T>* CollectionInterface::editor() const
template<class T> template<class T>
bool CollectionInterface::attachExtension(bool enable) bool CollectionInterface::attachExtension(bool enable)
{ {
Q_UNUSED(enable);
//FIXME for now all extensions are considered active //FIXME for now all extensions are considered active
return true; return true;
} }
......
...@@ -101,11 +101,14 @@ void DaemonCertificateCollectionPrivate::slotCertificatePinned(const QString& id ...@@ -101,11 +101,14 @@ void DaemonCertificateCollectionPrivate::slotCertificatePinned(const QString& id
void DaemonCertificateCollectionPrivate::slotCertificateExpired(const QString& id) void DaemonCertificateCollectionPrivate::slotCertificateExpired(const QString& id)
{ {
Q_UNUSED(id);
//qDebug() << "\n\nCERTIFICATE EXPIRED" << id; //qDebug() << "\n\nCERTIFICATE EXPIRED" << id;
} }
void DaemonCertificateCollectionPrivate::slotCertificatePathPinned(const QString& path, const QStringList& certIds) 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 //Create a new collection if it is a directory or size > 1
//qDebug() << "\n\nSIGNAL CERTIFICATE PATH PINNING" << path << certIds; //qDebug() << "\n\nSIGNAL CERTIFICATE PATH PINNING" << path << certIds;
} }
...@@ -126,7 +129,7 @@ bool DaemonCertificateCollection::load() ...@@ -126,7 +129,7 @@ bool DaemonCertificateCollection::load()
//qDebug() << "\n\nLOADING CERTS" << d_ptr->m_pAccount << certs; //qDebug() << "\n\nLOADING CERTS" << d_ptr->m_pAccount << certs;
for (const QString& id : 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; return true;
} }
...@@ -201,6 +204,7 @@ bool DaemonCertificateEditor::save( const Certificate* item) ...@@ -201,6 +204,7 @@ bool DaemonCertificateEditor::save( const Certificate* item)
bool DaemonCertificateEditor::remove( const Certificate* item) bool DaemonCertificateEditor::remove( const Certificate* item)
{ {
//TODO //TODO
Q_UNUSED(item);
return false; return false;
} }
......
...@@ -224,6 +224,7 @@ bool LocalTextRecordingCollection::listId(std::function<void(const QList<Element ...@@ -224,6 +224,7 @@ bool LocalTextRecordingCollection::listId(std::function<void(const QList<Element
bool LocalTextRecordingCollection::fetch(const Element& e) bool LocalTextRecordingCollection::fetch(const Element& e)
{ {
Q_UNUSED(e);
return false; return false;
} }
......
...@@ -95,6 +95,7 @@ d_ptr(new RecordingModelPrivate(this)) ...@@ -95,6 +95,7 @@ d_ptr(new RecordingModelPrivate(this))
d_ptr->m_pTextRecordingCollection->listId([](const QList<CollectionInterface::Element>& e) { d_ptr->m_pTextRecordingCollection->listId([](const QList<CollectionInterface::Element>& e) {
//TODO //TODO
Q_UNUSED(e);
}); });
} }
......
...@@ -80,6 +80,7 @@ int PendingTrustRequestModel::columnCount( const QModelIndex& parent ) const ...@@ -80,6 +80,7 @@ int PendingTrustRequestModel::columnCount( const QModelIndex& parent ) const
Qt::ItemFlags PendingTrustRequestModel::flags( const QModelIndex& index ) const Qt::ItemFlags PendingTrustRequestModel::flags( const QModelIndex& index ) const
{ {
Q_UNUSED(index);
return Qt::ItemIsEnabled | Qt::ItemIsSelectable; return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
} }
......
...@@ -608,7 +608,7 @@ public Q_SLOTS: // METHODS ...@@ -608,7 +608,7 @@ public Q_SLOTS: // METHODS
bool setCodecDetails(const QString& accountId, unsigned int codecId, const MapStringString& details) 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 Q_SIGNALS: // SIGNALS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment