From owner-svn-src-head@FreeBSD.ORG Fri Jan 20 01:38:05 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E4FF1065691; Fri, 20 Jan 2012 01:38:05 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8D4128FC16; Fri, 20 Jan 2012 01:38:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0K1c5AK016602; Fri, 20 Jan 2012 01:38:05 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0K1c5IW016600; Fri, 20 Jan 2012 01:38:05 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201201200138.q0K1c5IW016600@svn.freebsd.org> From: Eitan Adler Date: Fri, 20 Jan 2012 01:38:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230351 - head/usr.sbin/moused X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 01:38:05 -0000 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)