Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/vr suppress false alarm from gcc -Wuninitia...



details:   https://anonhg.NetBSD.org/src/rev/2764a8b6ed88
branches:  trunk
changeset: 556737:2764a8b6ed88
user:      shin <shin%NetBSD.org@localhost>
date:      Fri Dec 26 11:13:40 2003 +0000

description:
suppress false alarm from gcc -Wuninitialized.

diffstat:

 sys/arch/hpcmips/vr/vrpiu.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 9583d4b5630e -r 2764a8b6ed88 sys/arch/hpcmips/vr/vrpiu.c
--- a/sys/arch/hpcmips/vr/vrpiu.c       Fri Dec 26 11:10:08 2003 +0000
+++ b/sys/arch/hpcmips/vr/vrpiu.c       Fri Dec 26 11:13:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $    */
+/*     $NetBSD: vrpiu.c,v 1.31 2003/12/26 11:13:40 shin Exp $  */
 
 /*
  * Copyright (c) 1999-2003 TAKEMURA Shin All rights reserved.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.31 2003/12/26 11:13:40 shin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -609,6 +609,8 @@
        int tpx0, tpx1, tpy0, tpy1;
        int x, y, xraw, yraw;
 
+       tpx0 = tpx1 = tpy0 = tpy1 = 0;  /* XXX: gcc -Wuninitialized */
+
        intrstat = vrpiu_read(sc, PIUINT_REG_W);
 
        if (sc->sc_tpstat == VRPIU_TP_STAT_DISABLE) {



Home | Main Index | Thread Index | Old Index