From 672660639881ca4cb2747272991f24dad3d58329 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 9 Apr 2001 20:11:57 +0000 Subject: Silence several warnings when HAVE_TIGETSTR is not defined. --- Src/Modules/terminfo.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Src/Modules') diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index fd21a3de3..591e0e48a 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -30,13 +30,14 @@ #include "terminfo.mdh" #include "terminfo.pro" +/**/ +#ifdef HAVE_TIGETSTR + static char terminfo_nam[] = "terminfo"; static Param terminfo_pm; /* echoti: output a terminfo capability */ -#ifdef HAVE_TIGETSTR - /**/ static int bin_echoti(char *name, char **argv, char *ops, int func) @@ -79,11 +80,13 @@ bin_echoti(char *name, char **argv, char *ops, int func) return 0; } -#else +/**/ +#else /* !HAVE_TIGETSTR */ #define bin_echoti bin_notavail -#endif +/**/ +#endif /* !HAVE_TIGETSTR */ static struct builtin bintab[] = { BUILTIN("echoti", 0, bin_echoti, 1, -1, 0, NULL, NULL), @@ -93,6 +96,7 @@ static struct builtin bintab[] = { static int incleanup; +/**/ #ifdef HAVE_TIGETSTR /* Empty dummy function for special hash parameters. */ @@ -195,6 +199,7 @@ scanterminfo(HashTable ht, ScanFunc func, int flags) { } +/**/ #endif /* HAVE_TIGETSTR */ /**/ @@ -225,7 +230,9 @@ boot_(Module m) int cleanup_(Module m) { +#ifdef HAVE_TIGETSTR Param pm; +#endif incleanup = 1; -- cgit 1.4.1