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
This commit is contained in:
parent
831b96303a
commit
6240691ac7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230351
@ -3242,7 +3242,7 @@ kidspad(u_char rxc, mousestatus_t *act)
|
|||||||
static int buf[5];
|
static int buf[5];
|
||||||
static int buflen = 0, b_prev = 0 , x_prev = -1, y_prev = -1;
|
static int buflen = 0, b_prev = 0 , x_prev = -1, y_prev = -1;
|
||||||
static k_status status = S_IDLE;
|
static k_status status = S_IDLE;
|
||||||
static struct timespec old, now;
|
static struct timespec now;
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
@ -3280,7 +3280,6 @@ kidspad(u_char rxc, mousestatus_t *act)
|
|||||||
x_prev = x;
|
x_prev = x;
|
||||||
y_prev = y;
|
y_prev = y;
|
||||||
}
|
}
|
||||||
old = now;
|
|
||||||
act->dx = x - x_prev;
|
act->dx = x - x_prev;
|
||||||
act->dy = y - y_prev;
|
act->dy = y - y_prev;
|
||||||
if (act->dx || act->dy)
|
if (act->dx || act->dy)
|
||||||
|
Loading…
Reference in New Issue
Block a user