summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2003-10-27 22:48:20 +0000
committerdyoung <dyoung@NetBSD.org>2003-10-27 22:48:20 +0000
commit9a73ec4e1e5626211e90420005bc59bb2e29dd2c (patch)
treee9f9d69625a961e867cffcc81869f230401e5d67
parentf4f2cda6de92eb03a2070f21c02c36a54c3a7a2a (diff)
Stop false uninitialized variable warning.
-rw-r--r--sys/arch/macppc/dev/adb_direct.c6
-rw-r--r--sys/arch/powerpc/powerpc/pmap_subr.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/macppc/dev/adb_direct.c b/sys/arch/macppc/dev/adb_direct.c
index 55c69a20d99..7d551c286ed 100644
--- a/sys/arch/macppc/dev/adb_direct.c
+++ b/sys/arch/macppc/dev/adb_direct.c
@@ -1,4 +1,4 @@
-/* $NetBSD: adb_direct.c,v 1.26 2003/10/26 16:34:07 mycroft Exp $ */
+/* $NetBSD: adb_direct.c,v 1.27 2003/10/27 22:48:20 dyoung Exp $ */
/* From: adb_direct.c 2.02 4/18/97 jpw */
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.26 2003/10/26 16:34:07 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_direct.c,v 1.27 2003/10/27 22:48:20 dyoung Exp $");
#include <sys/param.h>
#include <sys/cdefs.h>
@@ -1235,7 +1235,7 @@ adb_reinit(void)
u_char send_string[ADB_MAX_MSG_LENGTH];
ADBDataBlock data; /* temp. holder for getting device info */
volatile int i, x;
- int s;
+ int s = 0; /* XXX: gcc */
int command;
int result;
int saveptr; /* point to next free relocation address */
diff --git a/sys/arch/powerpc/powerpc/pmap_subr.c b/sys/arch/powerpc/powerpc/pmap_subr.c
index daa446b4155..a3eb5dfcd2d 100644
--- a/sys/arch/powerpc/powerpc/pmap_subr.c
+++ b/sys/arch/powerpc/powerpc/pmap_subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_subr.c,v 1.10 2003/07/15 02:54:48 lukem Exp $ */
+/* $NetBSD: pmap_subr.c,v 1.11 2003/10/27 22:49:22 dyoung Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.10 2003/07/15 02:54:48 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.11 2003/10/27 22:49:22 dyoung Exp $");
#include "opt_multiprocessor.h"
#include "opt_altivec.h"
@@ -105,7 +105,7 @@ void
pmap_zero_page(paddr_t pa)
{
size_t linewidth;
- register_t msr;
+ register_t msr = 0; /* XXX: gcc */
#if defined(PPC_OEA)
{