Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc Guard a variable declaration by #if s...



details:   https://anonhg.NetBSD.org/src/rev/35ca18216d32
branches:  trunk
changeset: 535271:35ca18216d32
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Aug 13 09:46:21 2002 +0000

description:
Guard a variable declaration by #if so that it is not declared if it is not
used.

diffstat:

 sys/arch/macppc/macppc/machdep.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r fa4b63bf167d -r 35ca18216d32 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Tue Aug 13 06:15:15 2002 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Tue Aug 13 09:46:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.118 2002/08/06 06:16:04 chs Exp $        */
+/*     $NetBSD: machdep.c,v 1.119 2002/08/13 09:46:21 manu Exp $       */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -464,7 +464,9 @@
 void
 cninit()
 {
+#if (NITE > 0 || NZSTTY > 0)
        struct consdev *cp;
+#endif /* (NITE > 0 || NZSTTY > 0) */
        int stdout, node;
        char type[16];
 



Home | Main Index | Thread Index | Old Index