Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Fix bogus uninitialised warning.



details:   https://anonhg.NetBSD.org/src/rev/1413b4908f23
branches:  trunk
changeset: 554445:1413b4908f23
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Oct 28 09:52:32 2003 +0000

description:
Fix bogus uninitialised warning.

diffstat:

 sys/dev/scsipi/scsipi_base.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c80f896c441e -r 1413b4908f23 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c      Tue Oct 28 08:26:33 2003 +0000
+++ b/sys/dev/scsipi/scsipi_base.c      Tue Oct 28 09:52:32 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_base.c,v 1.98 2003/10/17 16:44:48 mycroft Exp $ */
+/*     $NetBSD: scsipi_base.c,v 1.99 2003/10/28 09:52:32 simonb Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002, 2003 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.98 2003/10/17 16:44:48 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.99 2003/10/28 09:52:32 simonb Exp $");
 
 #include "opt_scsi.h"
 
@@ -330,6 +330,7 @@
        int bit, tag;
        u_int word;
 
+       bit = 0;        /* XXX gcc */
        for (word = 0; word < PERIPH_NTAGWORDS; word++) {
                bit = ffs(periph->periph_freetags[word]);
                if (bit != 0)



Home | Main Index | Thread Index | Old Index