Fix win32-g++ build due to -Werror

qwindowsprintdevice.cpp:182:85: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         && DeviceCapabilities((LPWSTR)m_id.utf16(), NULL, DC_PAPERSIZE, NULL, NULL) == paperCount

MinGW DeviceCapabilities is returning an int, although microsoft documents it as returning DWORD.

Change-Id: I3acd76dde0b8b83f8a785ec84e3413115c847cb2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Sérgio Martins 2014-12-02 11:37:32 +00:00
parent 98a7497d74
commit 9a0c4fc479

View File

@ -39,6 +39,10 @@
# define DC_COLLATE 22
#endif
#if defined (Q_CC_MINGW)
# pragma GCC diagnostic ignored "-Wsign-compare"
#endif
QT_BEGIN_NAMESPACE
#ifndef QT_NO_PRINTER