svn commit: r258781 - in user/ed/newcons/sys/dev/vt: . hw/fb

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Nov 30 22:46:44 UTC 2013


Author: nwhitehorn
Date: Sat Nov 30 22:46:43 2013
New Revision: 258781
URL: http://svnweb.freebsd.org/changeset/base/258781

Log:
  Work around false positive errors from GCC.

Modified:
  user/ed/newcons/sys/dev/vt/hw/fb/vt_fb.c
  user/ed/newcons/sys/dev/vt/vt_core.c

Modified: user/ed/newcons/sys/dev/vt/hw/fb/vt_fb.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/hw/fb/vt_fb.c	Sat Nov 30 22:17:27 2013	(r258780)
+++ user/ed/newcons/sys/dev/vt/hw/fb/vt_fb.c	Sat Nov 30 22:46:43 2013	(r258781)
@@ -107,6 +107,7 @@ vt_fb_bitbltchr(struct vt_device *vd, co
 	bpp = FBTYPE_GET_BYTESPP(info);
 	fgc = info->fb_cmap[fg];
 	bgc = info->fb_cmap[bg];
+	b = m = 0;
 	if (bpl == 0)
 		bpl = (width + 7) >> 3; /* Bytes per sorce line. */
 

Modified: user/ed/newcons/sys/dev/vt/vt_core.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/vt_core.c	Sat Nov 30 22:17:27 2013	(r258780)
+++ user/ed/newcons/sys/dev/vt/vt_core.c	Sat Nov 30 22:46:43 2013	(r258781)
@@ -1109,6 +1109,7 @@ vt_mouse_event(int type, int x, int y, i
 	vd = main_vd;
 	vw = vd->vd_curwindow;
 	vf = vw->vw_font;
+	mark = 0;
 
 	if (vw->vw_flags & VWF_MOUSE_HIDE)
 		return; /* Mouse disabled. */


More information about the svn-src-user mailing list