From: Julien Danjou Date: Tue, 7 Nov 2006 17:31:16 +0000 (+0100) Subject: Fix compilation warnings in recvcmd.c X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=65734c98c7ff56a0258bc9052667a0cb9c2f1d0b Fix compilation warnings in recvcmd.c Tag unused attribute and use const char where needed Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- diff --git a/recvcmd.c b/recvcmd.c index 3ea0363..6d0a4ea 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -119,13 +119,13 @@ static short count_tagged_children (ATTACHPTR ** idx, short idxlen, short i) ** **/ -void mutt_attach_bounce (FILE * fp, HEADER * hdr, +void mutt_attach_bounce (FILE * fp, HEADER * hdr __attribute__ ((unused)), ATTACHPTR ** idx, short idxlen, BODY * cur) { short i; char prompt[STRING]; char buf[HUGE_STRING]; - char *err = NULL; + const char *err = NULL; address_t *adr = NULL; int ret = 0; int p = 0; @@ -216,7 +216,7 @@ void mutt_attach_bounce (FILE * fp, HEADER * hdr, ** **/ -void mutt_attach_resend (FILE * fp, HEADER * hdr, ATTACHPTR ** idx, +void mutt_attach_resend (FILE * fp, HEADER * hdr __attribute__ ((unused)), ATTACHPTR ** idx, short idxlen, BODY * cur) { short i; @@ -522,7 +522,7 @@ bail: * the attachment index. */ -static void attach_forward_msgs (FILE * fp, HEADER * hdr, +static void attach_forward_msgs (FILE * fp, HEADER * hdr __attribute__ ((unused)), ATTACHPTR ** idx, short idxlen, BODY * cur, int flags) { @@ -738,7 +738,7 @@ attach_reply_envelope_defaults (ENVELOPE * env, ATTACHPTR ** idx, /* This is _very_ similar to send.c's include_reply(). */ static void attach_include_reply (FILE * fp, FILE * tmpfp, HEADER * cur, - int flags) + int flags __attribute__ ((unused))) { int cmflags = M_CM_PREFIX | M_CM_DECODE | M_CM_CHARCONV; int chflags = CH_DECODE;