Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pmax/pmax Shut 'gcc -Wuninitialized' up (including ...
details: https://anonhg.NetBSD.org/src/rev/7df5c5c262ca
branches: trunk
changeset: 472208:7df5c5c262ca
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Apr 25 03:20:45 1999 +0000
description:
Shut 'gcc -Wuninitialized' up (including a real case I missed with ddb
symbol initialisation).
diffstat:
sys/arch/pmax/pmax/machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 4376a9b666eb -r 7df5c5c262ca sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c Sun Apr 25 03:03:03 1999 +0000
+++ b/sys/arch/pmax/pmax/machdep.c Sun Apr 25 03:20:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.137 1999/04/24 08:01:12 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.138 1999/04/25 03:20:45 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.137 1999/04/24 08:01:12 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.138 1999/04/25 03:20:45 simonb Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -248,8 +248,8 @@
caddr_t kernend, v;
unsigned size;
#ifdef DDB
- int nsym;
- caddr_t ssym;
+ int nsym = 0;
+ caddr_t ssym = 0;
struct btinfo_symtab *bi_syms;
struct exec *aout; /* XXX backwards compatilbity for DDB */
#endif
@@ -762,7 +762,7 @@
void
cpu_reboot(howto, bootstr)
- int howto;
+ volatile int howto; /* XXX volatile to keep gcc happy */
char *bootstr;
{
extern int cold;
Home |
Main Index |
Thread Index |
Old Index