From 4828923558a12737a7ca8b31d64b665897f2405c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 4 Sep 2018 22:57:31 -0700 Subject: Fix warning about ignored qualifiers graphicscontext.cpp:229:90: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] Change-Id: I495bc19409f348069f5bfffd15516b6a1d58d150 Reviewed-by: Sean Harmer --- src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/renderers/opengl') diff --git a/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp b/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp index 1e2035c01..59b5701f8 100644 --- a/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp +++ b/src/render/renderers/opengl/graphicshelpers/graphicscontext.cpp @@ -226,7 +226,7 @@ QOpenGLShaderProgram *GraphicsContext::createShaderProgram(Shader *shaderNode) const auto shaderCode = shaderNode->shaderCode(); QString logs; for (int i = QShaderProgram::Vertex; i <= QShaderProgram::Compute; ++i) { - const QShaderProgram::ShaderType type = static_cast(i); + const QShaderProgram::ShaderType type = static_cast(i); if (!shaderCode.at(i).isEmpty()) { // Note: logs only return the error but not all the shader code // we could append it -- cgit v1.2.3