[Piglit] [PATCH] texture-storage: Remove unused variable.
Vinson Lee
vlee at vmware.com
Wed Nov 30 14:21:33 PST 2011
Fixes this GCC warning.
texture-storage.c: In function ‘test_one_level_errors’:
texture-storage.c:59:14: warning: variable ‘targetString’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/spec/arb_texture_storage/texture-storage.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/tests/spec/arb_texture_storage/texture-storage.c b/tests/spec/arb_texture_storage/texture-storage.c
index f72433c..58b0672 100644
--- a/tests/spec/arb_texture_storage/texture-storage.c
+++ b/tests/spec/arb_texture_storage/texture-storage.c
@@ -56,7 +56,6 @@ static GLboolean
test_one_level_errors(GLenum target)
{
const GLint width = 64, height = 4, depth = 8;
- const char *targetString = "";
GLuint tex;
GLint v;
@@ -69,15 +68,12 @@ test_one_level_errors(GLenum target)
if (target == GL_TEXTURE_1D) {
glTexStorage1D(target, 1, GL_RGBA, width);
- targetString = "GL_TEXTURE_1D";
}
else if (target == GL_TEXTURE_2D) {
glTexStorage2D(target, 1, GL_RGBA, width, height);
- targetString = "GL_TEXTURE_2D";
}
else if (target == GL_TEXTURE_3D) {
glTexStorage3D(target, 1, GL_RGBA, width, height, depth);
- targetString = "GL_TEXTURE_3D";
}
glGetTexLevelParameteriv(target, 0, GL_TEXTURE_WIDTH, &v);
--
1.7.7.3
More information about the Piglit
mailing list