From: Wayne Davison <wayned@users.sourceforge.net>
To: Zsh Workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: fix compiler warnings
Date: Mon, 9 Apr 2001 13:12:27 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.30.0104091303510.28864-200000@phong.blorf.net> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 324 bytes --]
The attached patch fixes an unused-variable warning, two warnings
about static variables that were defined but never used, and several
warnings about prototyped static functions that are never defined.
(All these warnings only showed up if HAVE_TIGETSTR was not defined.)
I went ahead and checked this into CVS.
..wayne..
[-- Attachment #2: silence some compiler warnings --]
[-- Type: TEXT/PLAIN, Size: 988 bytes --]
Index: 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 @@
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 int incleanup;
+/**/
#ifdef HAVE_TIGETSTR
/* Empty dummy function for special hash parameters. */
@@ -195,6 +199,7 @@
{
}
+/**/
#endif /* HAVE_TIGETSTR */
/**/
@@ -225,7 +230,9 @@
int
cleanup_(Module m)
{
+#ifdef HAVE_TIGETSTR
Param pm;
+#endif
incleanup = 1;
next reply other threads:[~2001-04-09 20:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-09 20:12 Wayne Davison [this message]
2001-04-09 20:25 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.30.0104091303510.28864-200000@phong.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).