diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2024-05-14 09:35:02 +0300 |
---|---|---|
committer | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2024-05-14 13:57:14 +0300 |
commit | fc95d79b5994ab389796e92736ea362cef5b3ceb (patch) | |
tree | e8b6b0203907a3c61e61f29ec2d45fbad5aaf4b4 | |
parent | 5cd6f806b58878567f59c5504782abce56f896cc (diff) |
Fix some autotest compilation warnings
Change-Id: I198ccd6774e07d229925bf00fcd94bb96921f2d4
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
-rw-r--r-- | tests/auto/cpp2dtest/qgarea/tst_area.cpp | 2 | ||||
-rw-r--r-- | tests/auto/cpp2dtest/qgbars/tst_bars.cpp | 2 | ||||
-rw-r--r-- | tests/auto/cpp2dtest/qglines/tst_lines.cpp | 2 | ||||
-rw-r--r-- | tests/auto/cpp2dtest/qgscatter/tst_scatter.cpp | 2 | ||||
-rw-r--r-- | tests/auto/cpptest/common/cpptestutil.h | 2 |
5 files changed, 1 insertions, 9 deletions
diff --git a/tests/auto/cpp2dtest/qgarea/tst_area.cpp b/tests/auto/cpp2dtest/qgarea/tst_area.cpp index 6c25ccc..e33583e 100644 --- a/tests/auto/cpp2dtest/qgarea/tst_area.cpp +++ b/tests/auto/cpp2dtest/qgarea/tst_area.cpp @@ -76,8 +76,6 @@ void tst_area::initializeProperties() { QVERIFY(m_series); - auto axisX = new QValueAxis(this); - auto axisY = new QValueAxis(this); auto theme = new QGraphsTheme(this); auto upperSeries = new QLineSeries(this); auto lowerSeries = new QLineSeries(this); diff --git a/tests/auto/cpp2dtest/qgbars/tst_bars.cpp b/tests/auto/cpp2dtest/qgbars/tst_bars.cpp index 9da12e4..b2839c5 100644 --- a/tests/auto/cpp2dtest/qgbars/tst_bars.cpp +++ b/tests/auto/cpp2dtest/qgbars/tst_bars.cpp @@ -77,8 +77,6 @@ void tst_bars::initializeProperties() { QVERIFY(m_series); - auto axisX = new QBarCategoryAxis(this); - auto axisY = new QValueAxis(this); auto theme = new QGraphsTheme(this); auto set = new QBarSet(this); diff --git a/tests/auto/cpp2dtest/qglines/tst_lines.cpp b/tests/auto/cpp2dtest/qglines/tst_lines.cpp index ae14484..cd90dfc 100644 --- a/tests/auto/cpp2dtest/qglines/tst_lines.cpp +++ b/tests/auto/cpp2dtest/qglines/tst_lines.cpp @@ -75,8 +75,6 @@ void tst_lines::initializeProperties() { QVERIFY(m_series); - auto axisX = new QValueAxis(this); - auto axisY = new QValueAxis(this); auto marker = new QQmlComponent(this); auto theme = new QGraphsTheme(this); diff --git a/tests/auto/cpp2dtest/qgscatter/tst_scatter.cpp b/tests/auto/cpp2dtest/qgscatter/tst_scatter.cpp index 5b5491c..00e356e 100644 --- a/tests/auto/cpp2dtest/qgscatter/tst_scatter.cpp +++ b/tests/auto/cpp2dtest/qgscatter/tst_scatter.cpp @@ -73,8 +73,6 @@ void tst_scatter::initializeProperties() { QVERIFY(m_series); - auto axisX = new QValueAxis(this); - auto axisY = new QValueAxis(this); auto marker = new QQmlComponent(this); auto theme = new QGraphsTheme(this); diff --git a/tests/auto/cpptest/common/cpptestutil.h b/tests/auto/cpptest/common/cpptestutil.h index 150ec07..bd8421a 100644 --- a/tests/auto/cpptest/common/cpptestutil.h +++ b/tests/auto/cpptest/common/cpptestutil.h @@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE namespace CpptestUtil { -static bool isOpenGLSupported() +[[maybe_unused]] static inline bool isOpenGLSupported() { return QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL); } |