diff options
author | Vinson Lee <vlee@vmware.com> | 2011-11-30 14:04:52 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2011-12-01 11:35:48 -0800 |
commit | 06ac01d0a2a5e1eebec1eb698f4793eafd87eec1 (patch) | |
tree | 55f58173a235804bb1de5635288df43d2ef321ec /tests/glx | |
parent | 0d622f5a4a65f2f6f565a138aa619c41fb4dcc32 (diff) |
glx-swap-event: Remove unused variable.
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@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/glx')
-rw-r--r-- | 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 0377daca..313c565b 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) |