Changeset 2214

Show
Ignore:
Timestamp:
06/18/07 23:44:52
Author:
pvanhoof
Message:

Compiler warning fixes by djcb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2212 r2214  
     12007-06-19  Dirk-Jan C. Binnema <dirk-jan.binnema@nokia.com> 
     2 
     3        * Compiler warning fixes 
     4 
    152007-06-18  Philip Van Hoof  <pvanhoof@gnome.org> 
    26 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c

    r2210 r2214  
    836836        FILE *out; 
    837837        int fd, i; 
    838         guint32 count
     838        guint32 count = 0
    839839        CamelMessageInfo *mi; 
    840840        char *path; 
     
    26462646        CamelDataWrapper *containee; 
    26472647        int parts, i; 
    2648         struct _CamelFolderSummaryPrivate *p
     2648        struct _CamelFolderSummaryPrivate *p = NULL
    26492649        CamelMessageContentInfo *info = NULL, *child; 
    26502650        CamelContentType *ct; 
    2651  
     2651         
    26522652        if (s != NULL && s->build_content) 
    26532653                info = ((CamelFolderSummaryClass *)(CAMEL_OBJECT_GET_CLASS(s)))->content_info_new_from_message(s, object); 
    26542654        else 
    26552655                info = content_info_new_from_message(NULL, object); 
    2656  
     2656         
    26572657        if (s != NULL) 
    26582658                p = _PRIVATE(s); 
     
    27022702                        my_list_append((struct _node **)&info->childs, (struct _node *)child); 
    27032703                } 
    2704         } else if (s != NULL && p->filter_stream 
     2704        } else if (s != NULL && p && p->filter_stream 
    27052705                   && camel_content_type_is(ct, "text", "*")) { 
    27062706                int html_id = -1, idx_id = -1; 
     
    33033303info_ptr(const CamelMessageInfo *mi, int id) 
    33043304{ 
    3305         const void *retval
     3305        const void *retval = NULL
    33063306 
    33073307        g_static_rec_mutex_lock (&global_lock); 
     
    33293329                        retval = &((const CamelMessageInfoBase *)mi)->message_id; 
    33303330                break; 
     3331 
     3332                default: 
     3333                        g_warning ("%s: invalid id %d", __FUNCTION__, id); 
     3334                         
    33313335        } 
    33323336 
     
    33403344info_uint32(const CamelMessageInfo *mi, int id) 
    33413345{ 
    3342         guint32 retval
     3346        guint32 retval = 0
    33433347 
    33443348        g_static_rec_mutex_lock (&global_lock); 
     
    33543358                        retval = ((const CamelMessageInfoBase *)mi)->size; 
    33553359                break; 
     3360                 
     3361                default: 
     3362                        g_warning ("%s: invalid id %d", __FUNCTION__, id); 
    33563363        } 
    33573364 
     
    33643371info_time(const CamelMessageInfo *mi, int id) 
    33653372{ 
    3366         time_t retval
     3373        time_t retval = 0
    33673374 
    33683375        g_static_rec_mutex_lock (&global_lock); 
     
    33793386                break; 
    33803387                default: 
    3381                         abort(); 
     3388                        g_warning ("%s: invalid id %d", __FUNCTION__, id); 
     3389 
    33823390        } 
    33833391 
     
    36293637{ 
    36303638        CamelMessageInfoBase *mi = (CamelMessageInfoBase *)info; 
    3631         int res
     3639        gboolean res = FALSE
    36323640 
    36333641        g_static_rec_mutex_lock (&global_lock); 
     
    36853693{ 
    36863694        CamelMessageInfoBase *mi = (CamelMessageInfoBase *)info; 
    3687         int res
     3695        gboolean res = FALSE
    36883696 
    36893697        g_static_rec_mutex_lock (&global_lock); 
    3690  
     3698         
    36913699#ifdef NON_TINYMAIL_FEATURES 
    36923700        res = camel_tag_set(&mi->user_tags, name, value); 
     
    37023710                camel_folder_change_info_free(changes); 
    37033711        } 
    3704  
     3712         
    37053713        g_static_rec_mutex_unlock (&global_lock); 
    37063714 
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-command.c

    r2169 r2214  
    10561056        const char *p, *start; 
    10571057        char *out, *outptr, *string; 
    1058         int num, len, i, arglen
     1058        int num, len, i, arglen = 0
    10591059 
    10601060        args = g_ptr_array_new (); 
  • trunk/libtinymail-camel/tny-camel-mime-part.c

    r2199 r2214  
    2222#include <glib/gi18n-lib.h> 
    2323 
     24#ifndef _GNU_SOURCE 
     25#define _GNU_SOURCE 
     26#endif /* GNU_SOURCE*/ 
     27 
    2428#include <string.h> 
    2529#include <tny-mime-part.h> 
     
    5458#include <camel/camel-mime-filter-charset.h> 
    5559#include <camel/camel-mime-filter-windows.h> 
    56  
    5760 
    5861static void  
  • trunk/libtinymail-maemo/tny-maemo-conic-device.c

    r2205 r2214  
    2323#include <tny-maemo-conic-device.h> 
    2424#include <string.h> /* For strcmp() */ 
     25#include <stdio.h> /* for printf */ 
    2526 
    2627#ifdef MAEMO_CONIC_DUMMY