From db4fc8bd03c80d5e0bc792cad5fbfee2046610b6 Mon Sep 17 00:00:00 2001 From: Frank Osterfeld Date: Thu, 14 Apr 2011 20:16:34 +0200 Subject: [PATCH] Fix compiler warnings. --- src/libtomahawk/database/fuzzyindex.cpp | 2 +- src/libtomahawk/network/controlconnection.cpp | 1 + src/libtomahawk/playlist/treemodelitem.cpp | 1 + thirdparty/liblastfm2/src/types/Track.cpp | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/database/fuzzyindex.cpp b/src/libtomahawk/database/fuzzyindex.cpp index 25719317c..31d4f5754 100644 --- a/src/libtomahawk/database/fuzzyindex.cpp +++ b/src/libtomahawk/database/fuzzyindex.cpp @@ -179,7 +179,7 @@ FuzzyIndex::search( const QString& table, const QString& name ) FuzzyQuery* qry = _CLNEW FuzzyQuery( _CLNEW Term( table.toStdWString().c_str(), DatabaseImpl::sortname( name ).toStdWString().c_str() ) ); hits = m_luceneSearcher->search( qry ); - for ( int i = 0; i < hits->length(); i++ ) + for ( uint i = 0; i < hits->length(); i++ ) { Document* d = &hits->doc( i ); diff --git a/src/libtomahawk/network/controlconnection.cpp b/src/libtomahawk/network/controlconnection.cpp index 24cc6af6d..b1c7a0b50 100644 --- a/src/libtomahawk/network/controlconnection.cpp +++ b/src/libtomahawk/network/controlconnection.cpp @@ -118,6 +118,7 @@ ControlConnection::registerSource() { qDebug() << Q_FUNC_INFO << m_source->id(); Source* source = (Source*) sender(); + Q_UNUSED( source ) Q_ASSERT( source == m_source.data() ); // .. but we'll use the shared pointer we've already made: diff --git a/src/libtomahawk/playlist/treemodelitem.cpp b/src/libtomahawk/playlist/treemodelitem.cpp index 9e1c03fa2..09688a56d 100644 --- a/src/libtomahawk/playlist/treemodelitem.cpp +++ b/src/libtomahawk/playlist/treemodelitem.cpp @@ -19,6 +19,7 @@ #include "treemodelitem.h" #include "utils/tomahawkutils.h" +#include "album.h" #include diff --git a/thirdparty/liblastfm2/src/types/Track.cpp b/thirdparty/liblastfm2/src/types/Track.cpp index cececee1b..64d8288d0 100644 --- a/thirdparty/liblastfm2/src/types/Track.cpp +++ b/thirdparty/liblastfm2/src/types/Track.cpp @@ -33,9 +33,9 @@ lastfm::TrackData::TrackData() rating( 0 ), fpid( -1 ), loved( false ), - null( false ), scrobbleStatus( Track::Null ), - scrobbleError( Track::None ) + scrobbleError( Track::None ), + null( false ) {} lastfm::Track::Track()