Skip to content

Commit

Permalink
More fixes to compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 18, 2024
1 parent ff6ced3 commit 6adb780
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/irisnet/noncore/cutestuff/httppoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ void HttpProxyGetStream::sock_readyRead()

void HttpProxyGetStream::processData(const QByteArray &block)
{
printf("processData: %lld bytes\n", block.size());
printf("processData: %lld bytes\n", qsizetype(block.size()));
if (!d->inHeader) {
emit dataReady(block);
return;
Expand Down
7 changes: 4 additions & 3 deletions src/irisnet/noncore/ice176.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ class Ice176::Private : public QObject {
}
this->remoteCandidates += remoteCandidates;

iceDebug("adding %lld remote candidates. total=%lld", remoteCandidates.count(), this->remoteCandidates.count());
iceDebug("adding %lld remote candidates. total=%lld", qsizetype(remoteCandidates.count()),
qsizetype(this->remoteCandidates.count()));
doPairing(localCandidates, remoteCandidates);
}

Expand Down Expand Up @@ -508,7 +509,7 @@ class Ice176::Private : public QObject {
void addChecklistPairs(const QList<QSharedPointer<CandidatePair>> &pairs)
{
#ifdef ICE_DEBUG
iceDebug("%lld new pairs", pairs.count());
iceDebug("%lld new pairs", qsizetype(pairs.count()));
for (auto &p : pairs)
p->logNew = true;
#endif
Expand Down Expand Up @@ -549,7 +550,7 @@ class Ice176::Private : public QObject {
while (checkList.pairs.count() > max_pairs)
checkList.pairs.removeLast();
#ifdef ICE_DEBUG
iceDebug("%lld after pruning (just new below):", checkList.pairs.count());
iceDebug("%lld after pruning (just new below):", qsizetype(checkList.pairs.count()));
for (auto &p : checkList.pairs) {
if (p->logNew)
iceDebug("C%d, %s", p->local->componentId, qPrintable(*p));
Expand Down
3 changes: 2 additions & 1 deletion src/irisnet/noncore/stuntypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ namespace StunTypes {
if (!val.isEmpty())
out += QString(" = %1").arg(val);
} else
out += QString::asprintf(" Unknown attribute (0x%04x) of %lld bytes", a.type, a.value.size());
out += QString::asprintf(" Unknown attribute (0x%04x) of %lld bytes", a.type,
qsizetype(a.value.size()));
}
} else
out += "\n (None)";
Expand Down
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/jingle-ice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ namespace XMPP { namespace Jingle { namespace ICE {
[this](const QList<XMPP::Ice176::Candidate> &candidates) {
pendingActions |= NewCandidate;
pendingLocalCandidates += candidates;
qDebug("discovered %lld local candidates", candidates.size());
qDebug("discovered %lld local candidates", qsizetype(candidates.size()));
for (auto const &c : candidates) {
qDebug(" - %s:%d", qPrintable(c.ip.toString()), c.port);
}
Expand Down
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/jingle-session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ namespace XMPP { namespace Jingle {
}

QMultiMap<Application::Update, Application *> updates;
qDebug("jingle-doStep: %lld applications have updates", signalingContent.size());
qDebug("jingle-doStep: %lld applications have updates", qsizetype(signalingContent.size()));
for (auto app : std::as_const(signalingContent)) {
auto updateType = app->evaluateOutgoingUpdate();
if (updateType.action != Action::NoAction) {
Expand Down
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/xmpp_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ bool Hash::compute(const QByteArray &ba)
if (!v_data.isEmpty())
return true;

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

Expand Down

0 comments on commit 6adb780

Please sign in to comment.