diff --git a/sys/arch/arm/iomd/vidcvideo.c b/sys/arch/arm/iomd/vidcvideo.c index 575848ffba88..39b6b6699cfb 100644 --- a/sys/arch/arm/iomd/vidcvideo.c +++ b/sys/arch/arm/iomd/vidcvideo.c @@ -1,4 +1,4 @@ -/* $NetBSD: vidcvideo.c,v 1.18 2003/10/24 23:03:50 chris Exp $ */ +/* $NetBSD: vidcvideo.c,v 1.19 2003/11/07 18:29:30 he Exp $ */ /* * Copyright (c) 2001 Reinoud Zandijk @@ -36,7 +36,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.18 2003/10/24 23:03:50 chris Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.19 2003/11/07 18:29:30 he Exp $"); #include #include @@ -816,6 +816,9 @@ set_cursor(sc, p) struct fb_devconfig *dc = sc->sc_dc; u_int v, index, count, icount; + /* XXX gcc does not detect identical conditions */ + index = count = icount = 0; + v = p->which; if (v & WSDISPLAY_CURSOR_DOCMAP) { index = p->cmap.index;