Fix some warnings about unused variables and functions

Change-Id: I5f0acd9598bc7f3a79963cc4e1b255e2b6fb2e5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-09-23 17:49:52 +02:00
parent a8d44b04da
commit 49569574de
10 changed files with 25 additions and 25 deletions

View File

@@ -37,6 +37,7 @@
namespace Timeline {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
static void renderMessageHandler(QtMsgType type, const QMessageLogContext &context,
const QString &message)
{
@@ -45,6 +46,7 @@ static void renderMessageHandler(QtMsgType type, const QMessageLogContext &conte
else
QTest::qWarn(message.toLatin1().constData(), context.file, context.line);
}
#endif // < Qt 6
void runSceneGraphTest(QSGNode *node)
{
@@ -78,6 +80,8 @@ void runSceneGraphTest(QSGNode *node)
// Unfortunately we cannot check the results of the rendering. But at least we know the shaders
// have not crashed here.
#else
Q_UNUSED(node)
#endif // < Qt 6
context.doneCurrent();