Skip to content

Commit 6adb780

Browse files
committed
More fixes to compilation warnings
1 parent ff6ced3 commit 6adb780

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

src/irisnet/noncore/cutestuff/httppoll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ void HttpProxyGetStream::sock_readyRead()
848848

849849
void HttpProxyGetStream::processData(const QByteArray &block)
850850
{
851-
printf("processData: %lld bytes\n", block.size());
851+
printf("processData: %lld bytes\n", qsizetype(block.size()));
852852
if (!d->inHeader) {
853853
emit dataReady(block);
854854
return;

src/irisnet/noncore/ice176.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ class Ice176::Private : public QObject {
453453
}
454454
this->remoteCandidates += remoteCandidates;
455455

456-
iceDebug("adding %lld remote candidates. total=%lld", remoteCandidates.count(), this->remoteCandidates.count());
456+
iceDebug("adding %lld remote candidates. total=%lld", qsizetype(remoteCandidates.count()),
457+
qsizetype(this->remoteCandidates.count()));
457458
doPairing(localCandidates, remoteCandidates);
458459
}
459460

@@ -508,7 +509,7 @@ class Ice176::Private : public QObject {
508509
void addChecklistPairs(const QList<QSharedPointer<CandidatePair>> &pairs)
509510
{
510511
#ifdef ICE_DEBUG
511-
iceDebug("%lld new pairs", pairs.count());
512+
iceDebug("%lld new pairs", qsizetype(pairs.count()));
512513
for (auto &p : pairs)
513514
p->logNew = true;
514515
#endif
@@ -549,7 +550,7 @@ class Ice176::Private : public QObject {
549550
while (checkList.pairs.count() > max_pairs)
550551
checkList.pairs.removeLast();
551552
#ifdef ICE_DEBUG
552-
iceDebug("%lld after pruning (just new below):", checkList.pairs.count());
553+
iceDebug("%lld after pruning (just new below):", qsizetype(checkList.pairs.count()));
553554
for (auto &p : checkList.pairs) {
554555
if (p->logNew)
555556
iceDebug("C%d, %s", p->local->componentId, qPrintable(*p));

src/irisnet/noncore/stuntypes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ namespace StunTypes {
624624
if (!val.isEmpty())
625625
out += QString(" = %1").arg(val);
626626
} else
627-
out += QString::asprintf(" Unknown attribute (0x%04x) of %lld bytes", a.type, a.value.size());
627+
out += QString::asprintf(" Unknown attribute (0x%04x) of %lld bytes", a.type,
628+
qsizetype(a.value.size()));
628629
}
629630
} else
630631
out += "\n (None)";

src/xmpp/xmpp-im/jingle-ice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ namespace XMPP { namespace Jingle { namespace ICE {
704704
[this](const QList<XMPP::Ice176::Candidate> &candidates) {
705705
pendingActions |= NewCandidate;
706706
pendingLocalCandidates += candidates;
707-
qDebug("discovered %lld local candidates", candidates.size());
707+
qDebug("discovered %lld local candidates", qsizetype(candidates.size()));
708708
for (auto const &c : candidates) {
709709
qDebug(" - %s:%d", qPrintable(c.ip.toString()), c.port);
710710
}

src/xmpp/xmpp-im/jingle-session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ namespace XMPP { namespace Jingle {
306306
}
307307

308308
QMultiMap<Application::Update, Application *> updates;
309-
qDebug("jingle-doStep: %lld applications have updates", signalingContent.size());
309+
qDebug("jingle-doStep: %lld applications have updates", qsizetype(signalingContent.size()));
310310
for (auto app : std::as_const(signalingContent)) {
311311
auto updateType = app->evaluateOutgoingUpdate();
312312
if (updateType.action != Action::NoAction) {

src/xmpp/xmpp-im/xmpp_hash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool Hash::compute(const QByteArray &ba)
172172
if (!v_data.isEmpty())
173173
return true;
174174

175-
qDebug("failed to compute %s hash for %lld bytes", qPrintable(stringType()), ba.size());
175+
qDebug("failed to compute %s hash for %lld bytes", qPrintable(stringType()), qsizetype(ba.size()));
176176
return false;
177177
}
178178

0 commit comments

Comments
 (0)