summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f5e7506)
with gcc -Wunused-parameter
17 files changed:
*/
#if __GNUC__ > 2
#define NORETURN __attribute__((__noreturn__))
*/
#if __GNUC__ > 2
#define NORETURN __attribute__((__noreturn__))
+#define NMH_UNUSED(i) (void) i
+#else /* TLS_SUPPORT */
+ NMH_UNUSED (tls);
#endif /* TLS_SUPPORT */
#ifdef CYRUS_SASL
#endif /* TLS_SUPPORT */
#ifdef CYRUS_SASL
sm_get_pass(sasl_conn_t *conn, void *context, int id,
sasl_secret_t **psecret)
{
sm_get_pass(sasl_conn_t *conn, void *context, int id,
sasl_secret_t **psecret)
{
char **pw_context = (char **) context;
char *pass = NULL;
int len;
char **pw_context = (char **) context;
char *pass = NULL;
int len;
static void
alrmser (int i)
{
static void
alrmser (int i)
{
#ifndef RELIABLE_SIGNALS
SIGNAL (SIGALRM, alrmser);
#endif
#ifndef RELIABLE_SIGNALS
SIGNAL (SIGALRM, alrmser);
#endif
static void
intrser (int i)
{
static void
intrser (int i)
{
/*
* should this be siglongjmp?
*/
/*
* should this be siglongjmp?
*/
lockfile_remove(lkinfo.curlock);
#endif /* HAVE_LIBLOCKFILE */
timerOFF (fd); /* turn off lock timer */
lockfile_remove(lkinfo.curlock);
#endif /* HAVE_LIBLOCKFILE */
timerOFF (fd); /* turn off lock timer */
+#else /* DOT_LOCKING */
+ NMH_UNUSED (file);
#endif /* DOT_LOCKING */
return (close (fd));
#endif /* DOT_LOCKING */
return (close (fd));
lockfile_remove(lkinfo.curlock);
#endif /* HAVE_LIBLOCKFILE */
timerOFF (fileno(fp)); /* turn off lock timer */
lockfile_remove(lkinfo.curlock);
#endif /* HAVE_LIBLOCKFILE */
timerOFF (fileno(fp)); /* turn off lock timer */
+#else /* DOT_LOCKING */
+ NMH_UNUSED (file);
#endif /* DOT_LOCKING */
return (fclose (fp));
#endif /* DOT_LOCKING */
return (fclose (fp));
void
mts_init (char *name)
{
void
mts_init (char *name)
{
const char *cp;
FILE *fp;
static int inited = 0;
const char *cp;
FILE *fp;
static int inited = 0;
static boolean
get_folder_info_callback (char *fold, void *baton)
{
static boolean
get_folder_info_callback (char *fold, void *baton)
{
boolean crawl_children;
get_folder_info_body (fold, NULL, &crawl_children);
fflush (stdout);
boolean crawl_children;
get_folder_info_body (fold, NULL, &crawl_children);
fflush (stdout);
static void
intrser (int i)
{
static void
intrser (int i)
{
discard (stdout);
putchar ('\n');
longjmp (env, DONE);
discard (stdout);
putchar ('\n');
longjmp (env, DONE);
static void
pipeser (int i)
{
static void
pipeser (int i)
{
static void
quitser (int i)
{
static void
quitser (int i)
{
putchar ('\n');
fflush (stdout);
done (NOTOK);
putchar ('\n');
fflush (stdout);
done (NOTOK);
static int
InitGeneric (CT ct)
{
static int
InitGeneric (CT ct)
{
return OK; /* not much to do here */
}
return OK; /* not much to do here */
}
static int
show_partial (CT ct, int serial, int alternate)
{
static int
show_partial (CT ct, int serial, int alternate)
{
+ NMH_UNUSED (serial);
+ NMH_UNUSED (alternate);
+
content_error (NULL, ct,
"in order to display this message, you must reassemble it");
return NOTOK;
content_error (NULL, ct,
"in order to display this message, you must reassemble it");
return NOTOK;
static void
intrser (int i)
{
static void
intrser (int i)
{
putchar ('\n');
siglongjmp (intrenv, DONE);
}
putchar ('\n');
siglongjmp (intrenv, DONE);
}
FILE *
msh_ready (int msgnum, int full)
{
FILE *
msh_ready (int msgnum, int full)
{
register int msgp;
int fd;
char *cp;
register int msgp;
int fd;
char *cp;
static void
intrser (int i)
{
static void
intrser (int i)
{
discard (stdout);
interrupted++;
}
discard (stdout);
interrupted++;
}
static void
pipeser (int i)
{
static void
pipeser (int i)
{
if (broken_pipe++ == 0)
fprintf (stderr, "broken pipe\n");
told_to_quit++;
if (broken_pipe++ == 0)
fprintf (stderr, "broken pipe\n");
told_to_quit++;
static void
quitser (int i)
{
static void
quitser (int i)
{
told_to_quit++;
interrupted++;
}
told_to_quit++;
interrupted++;
}
static void
alrmser (int i)
{
static void
alrmser (int i)
{
longjmp (peerenv, DONE);
}
longjmp (peerenv, DONE);
}
static int
pQRY (char *str, int scansw)
{
static int
pQRY (char *str, int scansw)
{
if (pQRY1 (scansw) == NOTOK || pQRY2 () == NOTOK)
return NOTOK;
if (pQRY1 (scansw) == NOTOK || pQRY2 () == NOTOK)
return NOTOK;
void
helpcmd (char **args)
{
void
helpcmd (char **args)
{
int i;
for (i = 0; hlpmsg[i]; i++) {
int i;
for (i = 0; hlpmsg[i]; i++) {
static int
eom_action (int c)
{
static int
eom_action (int c)
{
return (ftell (mhlfp) >= Msgs[mhlnum].m_stop);
}
return (ftell (mhlfp) >= Msgs[mhlnum].m_stop);
}
GREPaction (params)
plist
{
GREPaction (params)
plist
{
int c, body, lf;
long pos = start;
register char *p1, *p2, *ebp, *cbp;
int c, body, lf;
long pos = start;
register char *p1, *p2, *ebp, *cbp;
TWSaction (params)
plist
{
TWSaction (params)
plist
{
int state;
register char *bp;
char buf[BUFSIZ], name[NAMESZ];
int state;
register char *bp;
char buf[BUFSIZ], name[NAMESZ];
static void
sigser (int i)
{
static void
sigser (int i)
{
unlink (tmpfil);
if (msgflags & MINV)
unlink (bccfil);
unlink (tmpfil);
if (msgflags & MINV)
unlink (bccfil);
static void
intrser (int i)
{
static void
intrser (int i)
{
if (wtuser)
longjmp (sigenv, NOTOK);
sigint++;
if (wtuser)
longjmp (sigenv, NOTOK);
sigint++;
static void
alrmser (int i)
{
static void
alrmser (int i)
{
replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
int mime, char *form, char *filter, char *fcc)
{
replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
int mime, char *form, char *filter, char *fcc)
{
register int state, i;
register struct comp *cptr;
register char *tmpbuf;
register int state, i;
register struct comp *cptr;
register char *tmpbuf;
static void
alrmser (int i)
{
static void
alrmser (int i)
{