diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2020-06-04 18:18:29 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2020-06-05 13:22:49 +0300 |
commit | ad117c54441a656009bf70669c3e087d3019fae9 (patch) | |
tree | a764f474f0310eb7185b7d631950c317fb177a67 /src | |
parent | 8a95404905026a7d2caa507b49ce23e04148d4af (diff) |
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 <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qprocess.cpp | 4 | ||||
-rw-r--r-- | src/corelib/io/qprocess_win.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index 374142702b..854752069e 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -1018,8 +1018,8 @@ bool QProcessPrivate::tryReadFromChannel(Channel *channel) return false; } #if defined QPROCESS_DEBUG - qDebug("QProcessPrivate::tryReadFromChannel(%d), read %d bytes from the process' output", - int(channel - &stdinChannel), int(readBytes)); + qDebug("QProcessPrivate::tryReadFromChannel(%d), read %lld bytes from the process' output", + int(channel - &stdinChannel), readBytes); #endif if (channel->closed) { 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; } |