diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2001-04-09 20:11:57 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2001-04-09 20:11:57 +0000 |
commit | 672660639881ca4cb2747272991f24dad3d58329 (patch) | |
tree | b2145adf139a676cf5d52e405a97efa15430f156 | |
parent | a3a59f1f3779440a0e7a8736122b4aca41e4909a (diff) | |
download | zsh-672660639881ca4cb2747272991f24dad3d58329.tar.gz zsh-672660639881ca4cb2747272991f24dad3d58329.tar.xz zsh-672660639881ca4cb2747272991f24dad3d58329.zip |
Silence several warnings when HAVE_TIGETSTR is not defined.
-rw-r--r-- | Src/Modules/terminfo.c | 15 |
1 files changed, 11 insertions, 4 deletions
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; |