cal: fix compiler warning on systems without term libs

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-10-15 15:44:40 +02:00
parent 9c5eb6cfc1
commit a814f0bb76
1 changed files with 4 additions and 2 deletions

View File

@ -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"