Fix warnings about unused variables

Found by ICC
qglengineshadermanager.cpp(427): warning #177: variable "none" was declared but never referenced

Change-Id: Id3d5c7bf4d4c45069621ffff13f758ffaf1744d7
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
Thiago Macieira 2015-08-04 12:27:40 -07:00
parent 5f1a0cb42a
commit 84e1bb4951

View File

@ -424,11 +424,10 @@ QGLEngineShaderProg *QGLEngineSharedShaders::findProgramInCache(const QGLEngineS
if (!inCache) if (!inCache)
shaderCache.store(newProg->program, QGLContext::currentContext()); shaderCache.store(newProg->program, QGLContext::currentContext());
} else { } else {
QLatin1String none("none");
QLatin1String br("\n");
QString error; QString error;
error = QLatin1String("Shader program failed to link,"); error = QLatin1String("Shader program failed to link,");
#if defined(QT_DEBUG) #if defined(QT_DEBUG)
QLatin1String br("\n");
error += QLatin1String("\n Shaders Used:\n"); error += QLatin1String("\n Shaders Used:\n");
for (int i = 0; i < newProg->program->shaders().count(); ++i) { for (int i = 0; i < newProg->program->shaders().count(); ++i) {
QGLShader *shader = newProg->program->shaders().at(i); QGLShader *shader = newProg->program->shaders().at(i);