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
This commit is contained in:
Bjoern A. Zeeb 2014-09-20 08:18:48 +00:00
parent f4d6293c72
commit a10068fdf5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271899

View File

@ -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)