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 <v...@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

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to