Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/hp700 Avoid a warning in kernels w/o LCD support



details:   https://anonhg.NetBSD.org/src/rev/31f0266034f6
branches:  trunk
changeset: 772591:31f0266034f6
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jan 09 15:15:40 2012 +0000

description:
Avoid a warning in kernels w/o LCD support

diffstat:

 sys/arch/hp700/hp700/mainbus.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a17dac9fc26b -r 31f0266034f6 sys/arch/hp700/hp700/mainbus.c
--- a/sys/arch/hp700/hp700/mainbus.c    Mon Jan 09 14:58:15 2012 +0000
+++ b/sys/arch/hp700/hp700/mainbus.c    Mon Jan 09 15:15:40 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.79 2011/02/23 08:27:17 skrll Exp $       */
+/*     $NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $      */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.79 2011/02/23 08:27:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $");
 
 #include "locators.h"
 #include "power.h"
@@ -1359,7 +1359,9 @@
        struct mainbus_softc *sc = device_private(self);
        struct confargs nca;
        bus_space_handle_t ioh;
+#if NLCD > 0
        int err;
+#endif
 
        sc->sc_dv = self;
        mb_attached = 1;



Home | Main Index | Thread Index | Old Index