From: Julien Danjou Date: Mon, 13 Nov 2006 15:37:43 +0000 (+0100) Subject: Moody patch fixing compilation warnings X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=4282401a0bcdc285a228da4ad635cbf7baf71488;p=apps%2Fmadmutt.git Moody patch fixing compilation warnings Tag unused attribute Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- diff --git a/pop/pop.c b/pop/pop.c index 0bc06f5..5f8933e 100644 --- a/pop/pop.c +++ b/pop/pop.c @@ -431,7 +431,9 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) } /* update POP mailbox - delete messages from server */ -pop_query_status pop_sync_mailbox (CONTEXT * ctx, int unused, int *index_hint) +pop_query_status pop_sync_mailbox (CONTEXT * ctx, + int unused __attribute__ ((unused)), + int *index_hint __attribute__ ((unused))) { int i; pop_query_status ret; @@ -474,7 +476,9 @@ pop_query_status pop_sync_mailbox (CONTEXT * ctx, int unused, int *index_hint) } /* Check for new messages and fetch headers */ -int pop_check_mailbox (CONTEXT * ctx, int *index_hint, int unused) +int pop_check_mailbox (CONTEXT * ctx, + int *index_hint __attribute__ ((unused)), + int unused __attribute__ ((unused))) { int ret; POP_DATA *pop_data = (POP_DATA *) ctx->data; diff --git a/pop/pop_auth.c b/pop/pop_auth.c index 878c20f..eb575bf 100644 --- a/pop/pop_auth.c +++ b/pop/pop_auth.c @@ -171,7 +171,8 @@ void pop_apop_timestamp (POP_DATA * pop_data, char *buf) } /* APOP authenticator */ -static pop_auth_res_t pop_auth_apop (POP_DATA * pop_data, const char *method) +static pop_auth_res_t pop_auth_apop (POP_DATA * pop_data, + const char *method __attribute__ ((unused))) { MD5_CTX mdContext; unsigned char digest[16]; @@ -217,7 +218,8 @@ static pop_auth_res_t pop_auth_apop (POP_DATA * pop_data, const char *method) } /* USER authenticator */ -static pop_auth_res_t pop_auth_user (POP_DATA * pop_data, const char *method) +static pop_auth_res_t pop_auth_user (POP_DATA * pop_data, + const char *method __attribute__ ((unused))) { char buf[LONG_STRING]; pop_query_status ret;