From 22e38b45b20e68f38edb59cfdd12a4422d39c6c4 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 1 Jul 1999 20:43:03 +0000 Subject: [PATCH] Tidy up a few warnings when used without splash. (things defined but not used) --- sys/dev/syscons/syscons.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index ed5483c15498..48590762df9e 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.310 1999/06/29 17:30:33 yokota Exp $ + * $Id: syscons.c,v 1.311 1999/07/01 20:29:25 peter Exp $ */ #include "sc.h" @@ -101,11 +101,13 @@ static char sc_malloc = FALSE; static int saver_mode = CONS_LKM_SAVER; /* LKM/user saver */ static int run_scrn_saver = FALSE; /* should run the saver? */ static long scrn_blank_time = 0; /* screen saver timeout value */ +#if NSPLASH > 0 static int scrn_blanked; /* # of blanked screen */ static int sticky_splash = FALSE; static void none_saver(sc_softc_t *sc, int blank) { } static void (*current_saver)(sc_softc_t *, int) = none_saver; +#endif #if !defined(SC_NO_FONT_LOADING) && defined(SC_DFLT_FONT) #include "font.h" @@ -2942,9 +2944,11 @@ ansi_put(scr_stat *scp, u_char *buf, int len) { u_char *ptr = buf; +#if NSPLASH > 0 /* make screensaver happy */ if (!sticky_splash && scp == scp->sc->cur_scp) run_scrn_saver = FALSE; +#endif outloop: scp->sc->write_in_progress++; @@ -3426,7 +3430,9 @@ scshutdown(int howto, void *arg) int sc_clean_up(scr_stat *scp) { +#if NSPLASH > 0 int error; +#endif /* NSPLASH */ sc_touch_scrn_saver(); #if NSPLASH > 0