[Piglit] [PATCH] egl_khr_fence_sync: Remove unused variable.

Vinson Lee vlee at freedesktop.org
Mon Jul 20 20:50:42 PDT 2015


Fix compiler warnings.

egl_khr_fence_sync.c:70:36: warning: tentative array definition assumed to have one element
static const struct piglit_subtest subtests[];
                                   ^
egl_khr_fence_sync.c:70:36: warning: unused variable 'subtests' [-Wunused-const-variable]

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
index af5fad3..3a6dd9b 100644
--- a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
+++ b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
@@ -67,7 +67,6 @@ EGLint (*peglWaitSyncKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
 EGLBoolean (*peglGetSyncAttribKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
 
 static const char *prog_name;
-static const struct piglit_subtest subtests[];
 
 static const EGLint canary = 0x31415926;
 static EGLDisplay g_dpy = 0;
-- 
2.1.4



More information about the Piglit mailing list