From a814f0bb768f9b974767cdec53b3f862d5d393e7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 15 Oct 2013 15:44:40 +0200 Subject: cal: fix compiler warning on systems without term libs Reported-by: Benno Schulenberg Signed-off-by: Karel Zak --- misc-utils/cal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc-utils/cal.c') diff --git a/misc-utils/cal.c b/misc-utils/cal.c index dacc7a711..f91bc8ebe 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -135,10 +135,12 @@ static void my_putstring(char *s) #endif /* end of LIBTERMCAP / NCURSES */ - +#if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW) || defined(HAVE_LIBTERMCAP) static const char *term=""; -static const char *Senter="", *Sexit="";/* enter and exit standout mode */ static int Slen; /* strlen of Senter+Sexit */ +#endif + +static const char *Senter="", *Sexit="";/* enter and exit standout mode */ static char *Hrow; /* pointer to highlighted row in month */ #include "widechar.h" -- cgit v1.2.3-55-g7522