summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-09-20 08:18:48 +0000
committerbz <bz@FreeBSD.org>2014-09-20 08:18:48 +0000
commit95348c732328c9093f8589caa068789e180f4f0c (patch)
treea89253f194f1a87a1a87d99f087ded99c222d98c
parentf345ebf7972ea03d2a4b5ccb4e21cabacc00a3c9 (diff)
downloadFreeBSD-src-95348c732328c9093f8589caa068789e180f4f0c.zip
FreeBSD-src-95348c732328c9093f8589caa068789e180f4f0c.tar.gz
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
-rw-r--r--sys/dev/vt/vt_buf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c
index 91ebba3..cc23b3b 100644
--- a/sys/dev/vt/vt_buf.c
+++ b/sys/dev/vt/vt_buf.c
@@ -83,6 +83,7 @@ vthistory_seek(struct vt_buf *vb, int offset, int whence)
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)
OpenPOWER on IntegriCloud