From owner-svn-src-all@FreeBSD.ORG Sat Sep 20 08:18:49 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E60C8B2; Sat, 20 Sep 2014 08:18:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A4C1D2D; Sat, 20 Sep 2014 08:18:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8K8ImL6056318; Sat, 20 Sep 2014 08:18:48 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8K8ImA9056317; Sat, 20 Sep 2014 08:18:48 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201409200818.s8K8ImA9056317@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Sat, 20 Sep 2014 08:18:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271899 - head/sys/dev/vt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 08:18:49 -0000 Author: bz Date: Sat Sep 20 08:18:48 2014 New Revision: 271899 URL: http://svnweb.freebsd.org/changeset/base/271899 Log: Make gcc happy by initialising the variable only set in a couple of case statements without a default. MFC after: 2 days X-MFC with: r271871 Modified: head/sys/dev/vt/vt_buf.c Modified: head/sys/dev/vt/vt_buf.c ============================================================================== --- head/sys/dev/vt/vt_buf.c Sat Sep 20 08:03:15 2014 (r271898) +++ head/sys/dev/vt/vt_buf.c Sat Sep 20 08:18:48 2014 (r271899) @@ -83,6 +83,7 @@ vthistory_seek(struct vt_buf *vb, int of bottom + vb->vb_scr_size.tp_row - vb->vb_history_size : 0; + roffset = 0; /* Make gcc happy. */ switch (whence) { case VHS_SET: if (offset < 0)