[Piglit] [PATCH] fbo-generatemipmap-1d: Remove unused variables.

Vinson Lee vlee at freedesktop.org
Fri Jun 13 22:03:55 PDT 2014


Fix clang unused-const-variable warnings.

tests/fbo/fbo-generatemipmap-1d.c:44:20: warning: unused variable 'red' [-Wunused-const-variable]
static const float red[] =   {1, 0, 0, 0};
                   ^
tests/fbo/fbo-generatemipmap-1d.c:45:20: warning: unused variable 'green' [-Wunused-const-variable]
static const float green[] = {0, 1, 0, 0};
                   ^
tests/fbo/fbo-generatemipmap-1d.c:46:20: warning: unused variable 'blue' [-Wunused-const-variable]
static const float blue[] =  {0, 0, 1, 0};
                   ^
tests/fbo/fbo-generatemipmap-1d.c:47:20: warning: unused variable 'white' [-Wunused-const-variable]
static const float white[] = {1, 1, 1, 1};
                   ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/fbo/fbo-generatemipmap-1d.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tests/fbo/fbo-generatemipmap-1d.c b/tests/fbo/fbo-generatemipmap-1d.c
index f996ffd..ef099d9 100644
--- a/tests/fbo/fbo-generatemipmap-1d.c
+++ b/tests/fbo/fbo-generatemipmap-1d.c
@@ -41,11 +41,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 
 PIGLIT_GL_TEST_CONFIG_END
 
-static const float red[] =   {1, 0, 0, 0};
-static const float green[] = {0, 1, 0, 0};
-static const float blue[] =  {0, 0, 1, 0};
-static const float white[] = {1, 1, 1, 1};
-
 static const char *fs_1d =
    "uniform sampler1D tex; \n"
    "void main() \n"
-- 
1.9.3



More information about the Piglit mailing list