From ad117c54441a656009bf70669c3e087d3019fae9 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Thu, 4 Jun 2020 18:18:29 +0300 Subject: QProcess/Win: Fix build in debug mode Suppress a compile warning: io\qprocess_win.cpp: 623:101: error: format '%d' expects argument of ... Pick-to: 5.15 Change-Id: I9ea94ddfc21afea5d1a78e264507a36435cce063 Reviewed-by: Friedemann Kleint --- src/corelib/io/qprocess_win.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib/io/qprocess_win.cpp') diff --git a/src/corelib/io/qprocess_win.cpp b/src/corelib/io/qprocess_win.cpp index 1527cf93ed..148c6378c6 100644 --- a/src/corelib/io/qprocess_win.cpp +++ b/src/corelib/io/qprocess_win.cpp @@ -620,7 +620,8 @@ qint64 QProcessPrivate::bytesAvailableInChannel(const Channel *channel) const DWORD bytesAvail = channel->reader->bytesAvailable(); #if defined QPROCESS_DEBUG - qDebug("QProcessPrivate::bytesAvailableInChannel(%d) == %d", channel - &stdinChannel, bytesAvail); + qDebug("QProcessPrivate::bytesAvailableInChannel(%d) == %lld", + int(channel - &stdinChannel), qint64(bytesAvail)); #endif return bytesAvail; } -- cgit v1.2.3