[Piglit] [PATCH] glx-swap-event: Remove unused variable.
Brian Paul
brianp at vmware.com
Thu Dec 1 06:37:12 PST 2011
On 11/30/2011 03:08 PM, Vinson Lee wrote:
> 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)
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list