summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-20 01:38:05 +0000
committereadler <eadler@FreeBSD.org>2012-01-20 01:38:05 +0000
commitf568c7b0eb6e5aa91181fd5f2ffe1e29947aa05c (patch)
treef8fb1558d48022e549f43b226c15f141e39b3999 /usr.sbin
parent01873813754c1208ab3829b7fd743da31599332e (diff)
downloadFreeBSD-src-f568c7b0eb6e5aa91181fd5f2ffe1e29947aa05c.zip
FreeBSD-src-f568c7b0eb6e5aa91181fd5f2ffe1e29947aa05c.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/moused/moused.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c
index c88f8b9..39c2eb9 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)
OpenPOWER on IntegriCloud