Date: Sat, 20 Sep 2014 08:18:48 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271899 - head/sys/dev/vt Message-ID: <201409200818.s8K8ImA9056317@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409200818.s8K8ImA9056317>