From: Karel Zak Date: Tue, 15 Oct 2013 13:44:40 +0000 (+0200) Subject: cal: fix compiler warning on systems without term libs X-Git-Tag: v2.24~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a814f0bb768f9b974767cdec53b3f862d5d393e7;p=thirdparty%2Futil-linux.git cal: fix compiler warning on systems without term libs Reported-by: Benno Schulenberg Signed-off-by: Karel Zak --- diff --git a/misc-utils/cal.c b/misc-utils/cal.c index dacc7a7110..f91bc8ebea 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"