diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2012-11-20 14:57:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-21 18:23:59 +0100 |
commit | 3249439b203123ca277b931a34814f383715b0e8 (patch) | |
tree | 7767c6a514c99d217ff9d5718561ad5582296412 /examples | |
parent | 3791d21f72a4c7035cd1db42c36dbd1dc7efd0f6 (diff) |
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] |