Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Supress bogus -Wuninitialized warnings.



details:   https://anonhg.NetBSD.org/src/rev/bfd0b7a5b355
branches:  trunk
changeset: 555026:bfd0b7a5b355
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Nov 07 15:02:28 2003 +0000

description:
Supress bogus -Wuninitialized warnings.

diffstat:

 sys/dev/ic/igsfb.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r a45082572a71 -r bfd0b7a5b355 sys/dev/ic/igsfb.c
--- a/sys/dev/ic/igsfb.c        Fri Nov 07 14:54:29 2003 +0000
+++ b/sys/dev/ic/igsfb.c        Fri Nov 07 15:02:28 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igsfb.c,v 1.15 2003/08/31 14:41:15 uwe Exp $ */
+/*     $NetBSD: igsfb.c,v 1.16 2003/11/07 15:02:28 uwe Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 Valeriy E. Ushakov
@@ -31,7 +31,7 @@
  * Integraphics Systems IGA 168x and CyberPro series.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.15 2003/08/31 14:41:15 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.16 2003/11/07 15:02:28 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -900,6 +900,8 @@
        cc = &dc->dc_cursor;
        v = p->which;
 
+       index =  count = icount = iwidth = 0;   /* XXX: gcc */
+
        /* verify that the new cursor colormap is valid */
        if (v & WSDISPLAY_CURSOR_DOCMAP) {
                index = p->cmap.index;
@@ -1053,6 +1055,8 @@
        bus_space_handle_t ioh = dc->dc_ioh;
        u_int8_t curctl;
 
+       curctl = 0;             /* XXX: gcc */
+
        /*
         * We will need to tweak sprite control register for cursor
         * visibility and cursor color map manipualtion.



Home | Main Index | Thread Index | Old Index