summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-11-30 22:46:43 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-11-30 22:46:43 +0000
commit9cdeadcae2872a975e98203179845a368a2ebf00 (patch)
treeef6875c1a2c160326ced0d35cbbbf65f0e4c383a
parentac5298a605f8f952e5b7142b4f0fc16f8b82b471 (diff)
downloadFreeBSD-src-9cdeadcae2872a975e98203179845a368a2ebf00.zip
FreeBSD-src-9cdeadcae2872a975e98203179845a368a2ebf00.tar.gz
Work around false positive errors from GCC.
-rw-r--r--sys/dev/vt/hw/fb/vt_fb.c1
-rw-r--r--sys/dev/vt/vt_core.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c
index 0513127..f1b673c 100644
--- a/sys/dev/vt/hw/fb/vt_fb.c
+++ b/sys/dev/vt/hw/fb/vt_fb.c
@@ -107,6 +107,7 @@ vt_fb_bitbltchr(struct vt_device *vd, const uint8_t *src, const uint8_t *mask,
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. */
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 8e526ce..04fad78 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -1109,6 +1109,7 @@ vt_mouse_event(int type, int x, int y, int event, int cnt)
vd = main_vd;
vw = vd->vd_curwindow;
vf = vw->vw_font;
+ mark = 0;
if (vw->vw_flags & VWF_MOUSE_HIDE)
return; /* Mouse disabled. */
OpenPOWER on IntegriCloud