]> source.dussan.org Git - rspamd.git/commitdiff
Fix warnings.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 24 Feb 2011 14:58:42 +0000 (17:58 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 24 Feb 2011 14:58:42 +0000 (17:58 +0300)
src/greylist_storage.c
src/message.c

index 293cc1f7fb5e7ac1864c75cc091804c3ea1d5d4b..94ef751ae84082fcb8b85f413f8e3925d6ad4451 100644 (file)
@@ -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) {
index 28880b8da0db6dfd5367aaeeec9cd25ef3e9d27b..2077dbcf89204272641a12ba72470e78fe8e8bea 100644 (file)
@@ -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;