diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-02-03 15:29:13 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-04 08:43:38 +0100 |
commit | 3f75fb8d8f25af5b79b71ae74f453a2b220a11ce (patch) | |
tree | fef8df303fbaa07acc5e350bd2a66ef8feb7cf36 /src/corelib/io/qprocess_win.cpp | |
parent | 19f4b47b453ab9b9c6e05128ab8b1852e349c398 (diff) |
MinGW: Fix warnings.
- Special #define to access HB seems no longer necessary
(it was causing about mismatching DLL import attributes).
Change-Id: I57cc7d57b12a67c1d549b053db81e1f198f87786
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/corelib/io/qprocess_win.cpp')
-rw-r--r-- | src/corelib/io/qprocess_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qprocess_win.cpp b/src/corelib/io/qprocess_win.cpp index fd5c08b23e..51f34a61a6 100644 --- a/src/corelib/io/qprocess_win.cpp +++ b/src/corelib/io/qprocess_win.cpp @@ -98,7 +98,7 @@ static void qt_create_pipe(Q_PIPE *pipe, bool isInputPipe) break; DWORD dwError = GetLastError(); if (dwError != ERROR_PIPE_BUSY || !--attempts) { - qErrnoWarning(dwError, "QProcess: CreateNamedPipe failed.", GetLastError()); + qErrnoWarning(dwError, "QProcess: CreateNamedPipe failed."); return; } } @@ -115,7 +115,7 @@ static void qt_create_pipe(Q_PIPE *pipe, bool isInputPipe) FILE_FLAG_OVERLAPPED, NULL); if (hWrite == INVALID_HANDLE_VALUE) { - qWarning("QProcess: CreateFile failed with error code %d.\n", GetLastError()); + qErrnoWarning("QProcess: CreateFile failed."); CloseHandle(hRead); return; } |