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 | |
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')
-rw-r--r-- | src/corelib/io/qprocess_win.cpp | 4 | ||||
-rw-r--r-- | src/corelib/io/qwinoverlappedionotifier.cpp | 4 | ||||
-rw-r--r-- | src/network/socket/qlocalsocket_win.cpp | 2 | ||||
-rw-r--r-- | src/network/socket/qnativesocketengine_win.cpp | 2 | ||||
-rw-r--r-- | src/plugins/platforms/windows/qwindowsfontengine.h | 3 |
5 files changed, 7 insertions, 8 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; } diff --git a/src/corelib/io/qwinoverlappedionotifier.cpp b/src/corelib/io/qwinoverlappedionotifier.cpp index a0dd7a7ba9..a26dfd406c 100644 --- a/src/corelib/io/qwinoverlappedionotifier.cpp +++ b/src/corelib/io/qwinoverlappedionotifier.cpp @@ -84,7 +84,7 @@ public: : hPort(INVALID_HANDLE_VALUE) { setObjectName(QLatin1String("I/O completion port thread")); - HANDLE hIOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, NULL, 0); + HANDLE hIOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (!hIOCP) { qErrnoWarning("CreateIoCompletionPort failed."); return; @@ -94,7 +94,7 @@ public: ~QWinIoCompletionPort() { - PostQueuedCompletionStatus(hPort, 0, NULL, NULL); + PostQueuedCompletionStatus(hPort, 0, 0, NULL); QThread::wait(); CloseHandle(hPort); } diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp index a6f8ef2c2c..35b0130afc 100644 --- a/src/network/socket/qlocalsocket_win.cpp +++ b/src/network/socket/qlocalsocket_win.cpp @@ -108,8 +108,8 @@ void QLocalSocketPrivate::_q_winError(ulong windowsError, const QString &functio QLocalSocketPrivate::QLocalSocketPrivate() : QIODevicePrivate(), handle(INVALID_HANDLE_VALUE), - pipeReader(0), pipeWriter(0), + pipeReader(0), error(QLocalSocket::UnknownSocketError), state(QLocalSocket::UnconnectedState) { diff --git a/src/network/socket/qnativesocketengine_win.cpp b/src/network/socket/qnativesocketengine_win.cpp index 7b3cdc0939..e57bfcb52b 100644 --- a/src/network/socket/qnativesocketengine_win.cpp +++ b/src/network/socket/qnativesocketengine_win.cpp @@ -732,6 +732,8 @@ bool QNativeSocketEnginePrivate::nativeBind(const QHostAddress &a, quint16 port) ipv6only = 1; ipv6only = ::setsockopt(socketDescriptor, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&ipv6only, sizeof(ipv6only) ); } +#else + Q_UNUSED(ipv6only) #endif break; case QAbstractSocket::IPv4Protocol: diff --git a/src/plugins/platforms/windows/qwindowsfontengine.h b/src/plugins/platforms/windows/qwindowsfontengine.h index d1418596cc..f8ebc896f2 100644 --- a/src/plugins/platforms/windows/qwindowsfontengine.h +++ b/src/plugins/platforms/windows/qwindowsfontengine.h @@ -53,10 +53,7 @@ // We mean it. // -// Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h. -#define QT_BUILD_GUI_LIB #include <QtGui/private/qfontengine_p.h> -#undef QT_BUILD_GUI_LIB #include <QtGui/QImage> #include <QtCore/QSharedPointer> |