Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:38:05 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230351 - head/usr.sbin/moused
Message-ID:  <201201200138.q0K1c5IW016600@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jan 20 01:38:05 2012
New Revision: 230351
URL: http://svn.freebsd.org/changeset/base/230351

Log:
  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

Modified:
  head/usr.sbin/moused/moused.c

Modified: head/usr.sbin/moused/moused.c
==============================================================================
--- head/usr.sbin/moused/moused.c	Fri Jan 20 01:37:56 2012	(r230350)
+++ head/usr.sbin/moused/moused.c	Fri Jan 20 01:38:05 2012	(r230351)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201200138.q0K1c5IW016600>