diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/opengl/cube/geometryengine.cpp | 2 | ||||
-rw-r--r-- | examples/qtestlib/tutorial5/benchmarking.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/opengl/cube/geometryengine.cpp b/examples/opengl/cube/geometryengine.cpp index e3d14d95de..d8dfeab822 100644 --- a/examples/opengl/cube/geometryengine.cpp +++ b/examples/opengl/cube/geometryengine.cpp @@ -151,7 +151,7 @@ void GeometryEngine::drawCubeGeometry(QGLShaderProgram *program) glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vboIds[1]); // Offset for position - int offset = 0; + quintptr offset = 0; // Tell OpenGL programmable pipeline how to locate vertex position data int vertexLocation = program->attributeLocation("a_position"); diff --git a/examples/qtestlib/tutorial5/benchmarking.cpp b/examples/qtestlib/tutorial5/benchmarking.cpp index c731677c1b..3a245f22cb 100644 --- a/examples/qtestlib/tutorial5/benchmarking.cpp +++ b/examples/qtestlib/tutorial5/benchmarking.cpp @@ -92,6 +92,7 @@ void TestBenchmark::multiple() result = (str1 == str2); } } + Q_UNUSED(result); } //! [2] @@ -127,6 +128,7 @@ void TestBenchmark::series() result = (str1 == str2); } } + Q_UNUSED(result); } //! [5] |