Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/xscale Stop some (bogus) gcc unitialized variab...



details:   https://anonhg.NetBSD.org/src/rev/ab45d045c858
branches:  trunk
changeset: 554628:ab45d045c858
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Oct 30 22:04:39 2003 +0000

description:
Stop some (bogus) gcc unitialized variable warning.

diffstat:

 sys/arch/arm/xscale/iopaau.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r c110a84c4508 -r ab45d045c858 sys/arch/arm/xscale/iopaau.c
--- a/sys/arch/arm/xscale/iopaau.c      Thu Oct 30 22:03:46 2003 +0000
+++ b/sys/arch/arm/xscale/iopaau.c      Thu Oct 30 22:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iopaau.c,v 1.10 2003/04/29 01:07:31 thorpej Exp $      */
+/*     $NetBSD: iopaau.c,v 1.11 2003/10/30 22:04:39 matt Exp $ */
 
 /*
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iopaau.c,v 1.10 2003/04/29 01:07:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iopaau.c,v 1.11 2003/10/30 22:04:39 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/pool.h>
@@ -276,6 +276,7 @@
        prevp = (struct aau_desc_4 **) &sc->sc_firstdesc;
        prevpa = &sc->sc_firstdesc_pa;
 
+       cur = NULL;     /* XXX: gcc */
        for (seg = 0; seg < dmamap->dm_nsegs; seg++) {
                cur = pool_cache_get(dc, PR_NOWAIT);
                if (cur == NULL) {
@@ -499,6 +500,7 @@
            }
 
        default:
+               i = 0;  /* XXX: gcc */
                error = EINVAL;
        }
 
@@ -519,6 +521,7 @@
        prevp = (struct aau_desc_8 **) &sc->sc_firstdesc;
        prevpa = &sc->sc_firstdesc_pa;
 
+       cur = NULL;     /* XXX: gcc */
        for (seg = 0; seg < dmamap->dm_nsegs; seg++) {
                cur = pool_cache_get(dc, PR_NOWAIT);
                if (cur == NULL) {



Home | Main Index | Thread Index | Old Index