Fix clang warnings

This commit is contained in:
Olivier Goffart 2014-11-08 11:11:25 +01:00
parent d524f6b395
commit 98a283b4ec
2 changed files with 3 additions and 3 deletions

View file

@ -619,7 +619,7 @@ void PropagateUploadFileQNAM::finalize(const SyncFileItem &copy)
done(SyncFileItem::Success);
}
void PropagateUploadFileQNAM::slotUploadProgress(qint64 sent, qint64 t)
void PropagateUploadFileQNAM::slotUploadProgress(qint64 sent, qint64)
{
int progressChunk = _currentChunk + _startChunk - 1;
if (progressChunk >= _chunkCount)
@ -838,7 +838,7 @@ void GETFileJob::giveBandwidthQuota(qint64 q)
qint64 GETFileJob::currentDownloadPosition()
{
if (_device && _device->pos() > 0 && _device->pos() > _resumeStart) {
if (_device && _device->pos() > 0 && _device->pos() > qint64(_resumeStart)) {
return _device->pos();
}
return _resumeStart;

View file

@ -98,7 +98,7 @@ static time_t getMaxBlacklistTime()
bool SyncJournalBlacklistRecord::isValid() const
{
return ! _file.isEmpty()
&& (!_lastTryEtag.isEmpty() || !_lastTryModtime == 0)
&& (!_lastTryEtag.isEmpty() || _lastTryModtime != 0)
&& _lastTryTime > 0 && _ignoreDuration > 0;
}