From 6240691ac7fe12940f6cd89b61b3bd0fa88fd903 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 20 Jan 2012 01:38:05 +0000 Subject: [PATCH] Fix warning when compiling with gcc46: error: variable 'now' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days --- usr.sbin/moused/moused.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index c88f8b966095..39c2eb96c8ea 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -3242,7 +3242,7 @@ kidspad(u_char rxc, mousestatus_t *act) static int buf[5]; static int buflen = 0, b_prev = 0 , x_prev = -1, y_prev = -1; static k_status status = S_IDLE; - static struct timespec old, now; + static struct timespec now; int x, y; @@ -3280,7 +3280,6 @@ kidspad(u_char rxc, mousestatus_t *act) x_prev = x; y_prev = y; } - old = now; act->dx = x - x_prev; act->dy = y - y_prev; if (act->dx || act->dy)