svn commit: r271899 - head/sys/dev/vt

Bjoern A. Zeeb bz at FreeBSD.org
Sat Sep 20 08:18:49 UTC 2014


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)


More information about the svn-src-all mailing list