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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to