aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/geometry
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-12-19 16:18:52 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-20 15:44:48 +0100
commit920b949e5185258baabfb3f738b660b3c0f002e3 (patch)
tree702fa5cb06854a1c213e896fd38edbcf912d4731 /tests/auto/quick/geometry
parentad821a63bf4075f2b18ec9eaa6d58f8fd721269a (diff)
Fix compiler warnings in declarative tests.
- Unused variables - Missing enumeration values in switch - truncation from double to float - truncation from size_t to int - Missing initializers - Mix of operator & and bool | Change-Id: Ib212aeea41befef193f12300a1d9814a60f183af Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/quick/geometry')
-rw-r--r--tests/auto/quick/geometry/tst_geometry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/geometry/tst_geometry.cpp b/tests/auto/quick/geometry/tst_geometry.cpp
index 8bf65d1638..fc5e921db5 100644
--- a/tests/auto/quick/geometry/tst_geometry.cpp
+++ b/tests/auto/quick/geometry/tst_geometry.cpp
@@ -139,9 +139,9 @@ void GeometryTest::testCustomGeometry()
};
static QSGGeometry::Attribute attributes[] = {
- { 0, 2, GL_FLOAT },
- { 1, 4, GL_UNSIGNED_BYTE },
- { 2, 4, GL_FLOAT },
+ { 0, 2, GL_FLOAT, 0, 0},
+ { 1, 4, GL_UNSIGNED_BYTE, 0, 0},
+ { 2, 4, GL_FLOAT, 0, 0},
};
static QSGGeometry::AttributeSet set = { 4, 6 * sizeof(float) + 4 * sizeof(unsigned char), attributes };