Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/newsmips Suppress uninitialized warnings.



details:   https://anonhg.NetBSD.org/src/rev/4449599f7937
branches:  trunk
changeset: 555596:4449599f7937
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Nov 23 00:09:11 2003 +0000

description:
Suppress uninitialized warnings.

diffstat:

 sys/arch/newsmips/newsmips/machdep.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r e1838856222c -r 4449599f7937 sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c      Sat Nov 22 23:26:52 2003 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c      Sun Nov 23 00:09:11 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.73 2003/10/26 14:52:52 tsutsui Exp $     */
+/*     $NetBSD: machdep.c,v 1.74 2003/11/23 00:09:11 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.73 2003/10/26 14:52:52 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.74 2003/11/23 00:09:11 tsutsui Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -264,6 +264,9 @@
        char *ssym, *esym;
 #endif
 
+       bi_arg = NULL;
+       ssym = esym = NULL;     /* XXX: gcc */
+
        /* clear the BSS segment */
        bzero(edata, end - edata);
 
@@ -297,6 +300,9 @@
                int i;
                char *bootspec = (char *)x_bootdev;
 
+               if (bi_arg == NULL)
+                       panic("news5000 requires BTINFO_BOOTARG to boot");
+
                _sip = (void *)bi_arg->sip;
                x_maxmem = _sip->apbsi_memsize;
                x_maxmem -= 0x00100000; /* reserve 1MB for ROM monitor */



Home | Main Index | Thread Index | Old Index