Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcsh/hpcsh XXX: Init dummy variable that we only u...



details:   https://anonhg.NetBSD.org/src/rev/1ae397431f5b
branches:  trunk
changeset: 554703:1ae397431f5b
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Nov 01 03:24:12 2003 +0000

description:
XXX: Init dummy variable that we only use in asm() to pacify
XXX: -Wuninitialized.  There must be a better way.

diffstat:

 sys/arch/hpcsh/hpcsh/kloader_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cbea124409c8 -r 1ae397431f5b sys/arch/hpcsh/hpcsh/kloader_machdep.c
--- a/sys/arch/hpcsh/hpcsh/kloader_machdep.c    Sat Nov 01 03:02:59 2003 +0000
+++ b/sys/arch/hpcsh/hpcsh/kloader_machdep.c    Sat Nov 01 03:24:12 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kloader_machdep.c,v 1.8 2003/11/01 02:29:08 uwe Exp $  */
+/*     $NetBSD: kloader_machdep.c,v 1.9 2003/11/01 03:24:12 uwe Exp $  */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kloader_machdep.c,v 1.8 2003/11/01 02:29:08 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kloader_machdep.c,v 1.9 2003/11/01 03:24:12 uwe Exp $");
 
 #include "debug_kloader.h"
 
@@ -58,7 +58,7 @@
 kloader_sh ## cpu ## _boot(struct kloader_bootinfo *kbi,               \
     struct kloader_page_tag *p)                                                \
 {                                                                      \
-       int tmp;                                                        \
+       int tmp = 0;    /* XXX: -Wuninitialized */                      \
                                                                        \
        /* Disable interrupt. block exception. */                       \
        __asm__ __volatile__(                                           \



Home | Main Index | Thread Index | Old Index