[Piglit] [PATCH] egl-create-surface: Remove unused variable.

Vinson Lee vlee at freedesktop.org
Fri Jun 27 18:05:23 PDT 2014


Fix clang unused-const-variable warning.

egl-create-surface.c:40:21: warning: unused variable 'pixmap_attribs' [-Wunused-const-variable]
static const EGLint pixmap_attribs[] = {
                    ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/egl/egl-create-surface.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/egl/egl-create-surface.c b/tests/egl/egl-create-surface.c
index 1fd819a..0f3eec2 100644
--- a/tests/egl/egl-create-surface.c
+++ b/tests/egl/egl-create-surface.c
@@ -37,12 +37,6 @@
 #include "piglit-util-gl-common.h"
 #include "egl-util.h"
 
-static const EGLint pixmap_attribs[] = {
-	EGL_TEXTURE_FORMAT,	EGL_TEXTURE_RGB,
-	EGL_TEXTURE_TARGET,	EGL_TEXTURE_2D,
-	EGL_NONE
-};
-
 static enum piglit_result
 draw(struct egl_state *state)
 {
-- 
1.9.3



More information about the Piglit mailing list