Fix compilation with QT_NO_[DEBUG|WARNING]_OUTPUT
Change-Id: I4b92ac6b917c9979449b4834764497003d6de087 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>bb10
parent
0e647aeb6a
commit
9b9f86985f
|
|
@ -82,6 +82,7 @@ void debugBinaryString(const char *data, qint64 maxlen)
|
|||
|
||||
static void checkWarnMessage(const QIODevice *device, const char *function, const char *what)
|
||||
{
|
||||
#ifndef QT_NO_WARNING_OUTPUT
|
||||
QDebug d = qWarning();
|
||||
d.noquote();
|
||||
d.nospace();
|
||||
|
|
@ -97,6 +98,11 @@ static void checkWarnMessage(const QIODevice *device, const char *function, cons
|
|||
Q_UNUSED(device)
|
||||
#endif // !QT_NO_QOBJECT
|
||||
d << ": " << what;
|
||||
#else
|
||||
Q_UNUSED(device);
|
||||
Q_UNUSED(function);
|
||||
Q_UNUSED(what);
|
||||
#endif // QT_NO_WARNING_OUTPUT
|
||||
}
|
||||
|
||||
#define CHECK_MAXLEN(function, returnType) \
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ QWindowsOpenGLTester::Renderers QWindowsOpenGLTester::supportedGlesRenderers()
|
|||
{
|
||||
const GpuDescription gpu = GpuDescription::detect();
|
||||
const QWindowsOpenGLTester::Renderers result = detectSupportedRenderers(gpu, true);
|
||||
qDebug(lcQpaGl) << __FUNCTION__ << gpu << "renderer: " << result;
|
||||
qCDebug(lcQpaGl) << __FUNCTION__ << gpu << "renderer: " << result;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -284,7 +284,7 @@ QWindowsOpenGLTester::Renderers QWindowsOpenGLTester::supportedRenderers()
|
|||
{
|
||||
const GpuDescription gpu = GpuDescription::detect();
|
||||
const QWindowsOpenGLTester::Renderers result = detectSupportedRenderers(gpu, false);
|
||||
qDebug(lcQpaGl) << __FUNCTION__ << gpu << "renderer: " << result;
|
||||
qCDebug(lcQpaGl) << __FUNCTION__ << gpu << "renderer: " << result;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue