[Piglit] [PATCH] glx-swap-event: Remove unused variable.
Vinson Lee
vlee at vmware.com
Wed Nov 30 14:08:57 PST 2011
Fixes this GCC warning.
glx-swap-event.c: In function ‘draw_frame’:
glx-swap-event.c:122:12: warning: variable ‘dt’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/glx/glx-swap-event.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index 0377dac..313c565 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -119,12 +119,11 @@ draw_frame(Display *dpy, Window win)
static int frames = 0, async_swap;
static double tRot0 = -1.0, tRate0 = -1.0;
static double swap_freq[2];
- double dt, t = current_time();
+ double t = current_time();
int tem, ret;
if (tRot0 < 0.0)
tRot0 = t;
- dt = t - tRot0;
tRot0 = t;
if (tRate0 < 0.0)
--
1.7.7.3
More information about the Piglit
mailing list