From 248ffb29f578ca774705125eb25eb98e075f1c7f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 Feb 2011 17:58:42 +0300 Subject: [PATCH] Fix warnings. --- src/greylist_storage.c | 2 ++ src/message.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/greylist_storage.c b/src/greylist_storage.c index 293cc1f7f..94ef751ae 100644 --- a/src/greylist_storage.c +++ b/src/greylist_storage.c @@ -150,6 +150,7 @@ greylist_process_add_command (struct rspamd_grey_command *cmd, struct greylist_c #else g_tree_insert (ctx->tree, item->data, item); reply.reply = GREY_OK; + (void)pitem; #endif return reply.reply; @@ -203,6 +204,7 @@ greylist_process_check_command (struct rspamd_grey_command *cmd, struct greylist } #else item = g_tree_lookup (ctx->tree, cmd->data); + (void)pitem; #endif if (item) { if (now - item->age > ctx->expire_time) { diff --git a/src/message.c b/src/message.c index 28880b8da..2077dbcf8 100644 --- a/src/message.c +++ b/src/message.c @@ -1137,7 +1137,7 @@ header_iterate (memory_pool_t * pool, struct gmime_raw_header *h, GList ** ret, } } } - h = h->next; + h = (struct gmime_raw_header *)h->next; } } #else @@ -1217,7 +1217,7 @@ multipart_iterate (GMimeObject * part, gpointer user_data) ls = g_mime_object_get_header_list (GMIME_OBJECT (part)); header_iterate (data->pool, ls, &l, data->field, data->strong); #else - h = part->headers->headers; + h = (struct gmime_raw_header *)part->headers->headers; header_iterate (data->pool, h, &l, data->field, data->strong); #endif if (l == NULL) { @@ -1257,7 +1257,7 @@ local_message_get_header (memory_pool_t * pool, GMimeMessage * message, const gc cb.strong = strong; #ifndef GMIME24 - struct raw_header *h; + struct gmime_raw_header *h; if (field == NULL) { return NULL; -- 2.39.5