Suppress MinGW warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-09-02 09:37:37 +03:00
parent 1baaaeafb9
commit 7e04c412de

View File

@ -602,6 +602,8 @@ void AbstractTest::ReadDoubleValue(const QJsonObject &itemObject, const QString
{
if (not defaultValue.isEmpty())
{
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wunused-but-set-variable")
bool ok = false;
qreal defVal = defaultValue.toDouble(&ok);
@ -612,6 +614,7 @@ void AbstractTest::ReadDoubleValue(const QJsonObject &itemObject, const QString
}
value = static_cast<T>(defVal);
QT_WARNING_POP
}
else
{