Changeset 2815

Show
Ignore:
Timestamp:
10/04/07 13:59:12
Author:
pvanhoof
Message:

Pedantic warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2814 r2815  
    22 
    33        - -Wall warnings 
     4        - -pedantic warnings 
    45 
    562007-10-03  Jose Dapena Paz  <jdapena@igalia.com> 
  • trunk/libtinymail-camel/camel-lite/camel/camel-arg.h

    r1943 r2815  
    4343        CAMEL_ARG_STR = 0x30000000, /* c string */ 
    4444        CAMEL_ARG_PTR = 0x40000000, /* ptr */ 
    45         CAMEL_ARG_BOO = 0x50000000, /* bool */ 
     45        CAMEL_ARG_BOO = 0x50000000 /* bool */ 
    4646}; 
    4747 
  • trunk/libtinymail-camel/camel-lite/camel/camel-certdb.h

    r1943 r2815  
    3939 
    4040enum { 
    41         CAMEL_CERTDB_DIRTY  = (1 << 0), 
     41        CAMEL_CERTDB_DIRTY  = (1 << 0) 
    4242}; 
    4343 
     
    4646        CAMEL_CERT_STRING_SUBJECT, 
    4747        CAMEL_CERT_STRING_HOSTNAME, 
    48         CAMEL_CERT_STRING_FINGERPRINT, 
     48        CAMEL_CERT_STRING_FINGERPRINT 
    4949}; 
    5050 
     
    5454        CAMEL_CERT_TRUST_MARGINAL, 
    5555        CAMEL_CERT_TRUST_FULLY, 
    56         CAMEL_CERT_TRUST_ULTIMATE, 
     56        CAMEL_CERT_TRUST_ULTIMATE 
    5757} CamelCertTrust; 
    5858 
  • trunk/libtinymail-camel/camel-lite/camel/camel-cipher-context.h

    r1943 r2815  
    5757        CAMEL_CIPHER_VALIDITY_SIGN_GOOD, 
    5858        CAMEL_CIPHER_VALIDITY_SIGN_BAD, 
    59         CAMEL_CIPHER_VALIDITY_SIGN_UNKNOWN, 
     59        CAMEL_CIPHER_VALIDITY_SIGN_UNKNOWN 
    6060} camel_cipher_validity_sign_t; 
    6161 
     
    6464        CAMEL_CIPHER_VALIDITY_ENCRYPT_WEAK, 
    6565        CAMEL_CIPHER_VALIDITY_ENCRYPT_ENCRYPTED, /* encrypted, unknown strenght */ 
    66         CAMEL_CIPHER_VALIDITY_ENCRYPT_STRONG, 
     66        CAMEL_CIPHER_VALIDITY_ENCRYPT_STRONG 
    6767} camel_cipher_validity_encrypt_t; 
    6868 
    6969typedef enum _camel_cipher_validity_mode_t { 
    7070        CAMEL_CIPHER_VALIDITY_SIGN, 
    71         CAMEL_CIPHER_VALIDITY_ENCRYPT, 
     71        CAMEL_CIPHER_VALIDITY_ENCRYPT 
    7272} camel_cipher_validity_mode_t; 
    7373 
  • trunk/libtinymail-camel/camel-lite/camel/camel-disco-diary.h

    r1943 r2815  
    4141        CAMEL_DISCO_DIARY_FOLDER_EXPUNGE, 
    4242        CAMEL_DISCO_DIARY_FOLDER_APPEND, 
    43         CAMEL_DISCO_DIARY_FOLDER_TRANSFER, 
     43        CAMEL_DISCO_DIARY_FOLDER_TRANSFER 
    4444} CamelDiscoDiaryAction; 
    4545 
  • trunk/libtinymail-camel/camel-lite/camel/camel-disco-folder.h

    r1943 r2815  
    3636enum { 
    3737        CAMEL_DISCO_FOLDER_ARG_OFFLINE_SYNC = CAMEL_FOLDER_ARG_LAST, 
    38  
    3938        CAMEL_DISCO_FOLDER_ARG_LAST = CAMEL_FOLDER_ARG_LAST + 0x100 
    4039}; 
    4140 
    4241enum { 
    43         CAMEL_DISCO_FOLDER_OFFLINE_SYNC = CAMEL_DISCO_FOLDER_ARG_OFFLINE_SYNC | CAMEL_ARG_BOO, 
     42        CAMEL_DISCO_FOLDER_OFFLINE_SYNC = CAMEL_DISCO_FOLDER_ARG_OFFLINE_SYNC | CAMEL_ARG_BOO 
    4443}; 
    4544 
  • trunk/libtinymail-camel/camel-lite/camel/camel-disco-store.h

    r1943 r2815  
    3636 
    3737enum { 
    38         CAMEL_DISCO_STORE_ARG_FIRST  = CAMEL_STORE_ARG_FIRST + 100, 
     38        CAMEL_DISCO_STORE_ARG_FIRST  = CAMEL_STORE_ARG_FIRST + 100 
    3939}; 
    4040 
  • trunk/libtinymail-camel/camel-lite/camel/camel-exception-list.def

    r2420 r2815  
    3737CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE, /* Authentication method not supported. */ 
    3838CAMEL_EXCEPTION_SERVICE_NOT_CONNECTED, 
    39 CAMEL_EXCEPTION_SERVICE_CERTIFICATE, /* Certificate problems. */ 
     39CAMEL_EXCEPTION_SERVICE_CERTIFICATE /* Certificate problems. */ 
  • trunk/libtinymail-camel/camel-lite/camel/camel-exception.c

    r1943 r2815  
    136136{ 
    137137        if (camel_debug("exception")) 
    138                 printf("CamelException.set(%p, %u, '%s')\n", ex, id, desc); 
     138                printf("CamelException.set(%p, %u, '%s')\n", (void *) ex, id, desc); 
    139139        if (!ex) 
    140140                return; 
     
    177177 
    178178        if (camel_debug("exception")) 
    179                 printf("CamelException.setv(%p, %u, '%s')\n", ex, id, desc); 
     179                printf("CamelException.setv(%p, %u, '%s')\n", (void *) ex, id, desc); 
    180180         
    181181        if (!ex) { 
     
    203203{ 
    204204        if (ex_src == NULL) { 
    205                 w(g_warning ("camel_exception_xfer: trying to transfer NULL exception to %p\n", ex_dst)); 
     205                /* w(g_warning ("camel_exception_xfer: trying to transfer NULL exception to %p\n", ex_dst)); */ 
    206206                return; 
    207207        } 
  • trunk/libtinymail-camel/camel-lite/camel/camel-file-utils.c

    r2751 r2815  
    414414camel_file_util_encode_fixed_string (FILE *out, const char *str, size_t len) 
    415415{ 
    416         char buf[len]
     416        char *buff = (char *) alloca (len)
    417417 
    418418        /* Don't allow empty strings to be written */ 
     
    424424                len = 65536; 
    425425                 
    426         memset(buf, 0x00, len); 
    427         g_strlcpy(buf, str, len); 
    428  
    429         if (fwrite (buf, len, 1, out) == len) 
     426        memset(buff, 0x00, len); 
     427        g_strlcpy(buff, str, len); 
     428 
     429        if (fwrite (buff, len, 1, out) == len) 
    430430                return 0; 
    431431 
  • trunk/libtinymail-camel/camel-lite/camel/camel-filter-driver.h

    r1943 r2815  
    5555        CAMEL_FILTER_STATUS_ACTION,     /* an action performed */ 
    5656        CAMEL_FILTER_STATUS_PROGRESS,   /* (an) extra update(s), if its taking longer to process */ 
    57         CAMEL_FILTER_STATUS_END,      /* end of message */ 
     57        CAMEL_FILTER_STATUS_END       /* end of message */ 
    5858}; 
    5959 
  • trunk/libtinymail-camel/camel-lite/camel/camel-filter-search.c

    r1943 r2815  
    154154                for (i=1; i<argc && !matched; i++) 
    155155                        matched = argv[i]->type == ESEXP_RES_STRING && argv[i]->value.string[0] == 0; 
     156 
    156157#if NON_TINYMAIL_FEATURES 
    157158                if (g_ascii_strcasecmp(name, "x-camel-mlist") == 0) { 
     
    166167                } else { 
    167168#endif 
    168                         CamelMimeMessage *message = camel_filter_search_get_message (fms, f); 
     169                        { 
     170                        CamelMimeMessage *message = NULL; 
    169171                        struct _camel_header_raw *header; 
    170172                        const char *charset = NULL; 
    171173                        camel_search_t type = CAMEL_SEARCH_TYPE_ENCODED; 
    172174                        CamelContentType *ct; 
     175 
     176                        message = camel_filter_search_get_message (fms, f); 
    173177 
    174178                        /* FIXME: what about Resent-To, Resent-Cc and Resent-From? */ 
     
    194198                } 
    195199#endif 
     200                } 
    196201        } 
    197202         
  • trunk/libtinymail-camel/camel-lite/camel/camel-filter-search.h

    r1943 r2815  
    3535        CAMEL_SEARCH_ERROR    = -1, 
    3636        CAMEL_SEARCH_NOMATCH  =  0, 
    37         CAMEL_SEARCH_MATCHED  =  1, 
     37        CAMEL_SEARCH_MATCHED  =  1 
    3838}; 
    3939 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-search.c

    r2279 r2815  
    143143        EMemPool *pool = value; 
    144144 
    145         g_warning("Search closed with outstanding result unfreed: %p", uids); 
     145        g_warning("Search closed with outstanding result unfreed: %p", (void *) uids); 
    146146 
    147147        g_ptr_array_free(uids, TRUE); 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.h

    r2720 r2815  
    8585        CAMEL_MESSAGE_FREED = 1<<15,  /* internally used */ 
    8686        CAMEL_MESSAGE_USER = 1<<16,  /* free slot */ 
    87         CAMEL_MESSAGE_SECURE = 1<<17, /* free slot */ 
     87        CAMEL_MESSAGE_SECURE = 1<<17 /* free slot */ 
    8888 
    8989} CamelMessageFlags; 
     
    175175 
    176176typedef enum _CamelFolderSummaryFlags { 
    177         CAMEL_SUMMARY_DIRTY = 1<<0, 
     177        CAMEL_SUMMARY_DIRTY = 1<<0 
    178178} CamelFolderSummaryFlags; 
    179179 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder-thread.c

    r1943 r2815  
    227227        } 
    228228 
    229         printf("ERROR: removing node %p failed\n", node); 
     229        printf("ERROR: removing node %p failed\n", (void *) node); 
    230230} 
    231231 
     
    330330        while (c) { 
    331331                if (g_hash_table_lookup(info->visited, c)) { 
    332                         printf("WARNING: NODE REVISITED: %p\n", c); 
     332                        printf("WARNING: NODE REVISITED: %p\n", (void *) c); 
    333333                } else { 
    334334                        g_hash_table_insert(info->visited, c, c); 
    335335                } 
    336336                if (c->message) { 
    337                         printf("%s %p Subject: %s <%08x%08x>\n", p, c, camel_message_info_subject(c->message), 
     337                        printf("%s %p Subject: %s <%08x%08x>\n", p, (void *) c, camel_message_info_subject(c->message), 
    338338                               camel_message_info_message_id(c->message)->id.part.hi, camel_message_info_message_id(c->message)->id.part.lo); 
    339339                        count += 1; 
    340340                } else { 
    341                         printf("%s %p <empty>\n", p, c); 
     341                        printf("%s %p <empty>\n", p, (void *) c); 
    342342                } 
    343343                if (c->child) 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder.c

    r2735 r2815  
    342342        g_return_if_fail (CAMEL_IS_FOLDER (folder)); 
    343343 
    344         return CF_CLASS (folder)->delete_attachments (folder, uid); 
     344        CF_CLASS (folder)->delete_attachments (folder, uid); 
     345 
     346        return; 
    345347} 
    346348 
     
    350352        g_return_if_fail (CAMEL_IS_FOLDER (folder)); 
    351353 
    352         return CF_CLASS (folder)->rewrite_cache (folder, uid, msg); 
     354        CF_CLASS (folder)->rewrite_cache (folder, uid, msg); 
     355 
     356        return; 
    353357} 
    354358 
  • trunk/libtinymail-camel/camel-lite/camel/camel-folder.h

    r2287 r2815  
    3636 
    3737 
    38 typedef enum _CamelFolderReceiveType CamelFolderReceiveType; 
    39  
    4038enum _CamelFolderReceiveType  
    4139{ 
     
    4341        CAMEL_FOLDER_RECEIVE_PARTIAL = 1<<1, 
    4442        CAMEL_FOLDER_RECEIVE_ANY_OR_FULL = 1<<2, 
    45         CAMEL_FOLDER_RECEIVE_ANY_OR_PARTIAL = 1<<3, 
    46 }; 
     43        CAMEL_FOLDER_RECEIVE_ANY_OR_PARTIAL = 1<<3 
     44}; 
     45 
     46typedef enum _CamelFolderReceiveType CamelFolderReceiveType; 
    4747 
    4848G_BEGIN_DECLS 
     
    6262        CAMEL_FOLDER_ARG_INFO_ARRAY, 
    6363        CAMEL_FOLDER_ARG_PROPERTIES, 
    64         CAMEL_FOLDER_ARG_LAST = CAMEL_ARG_FIRST + 0x2000, 
     64        CAMEL_FOLDER_ARG_LAST = CAMEL_ARG_FIRST + 0x2000 
    6565}; 
    6666 
     
    7878 
    7979        /* GSList of settable folder properties */ 
    80         CAMEL_FOLDER_PROPERTIES = CAMEL_FOLDER_ARG_PROPERTIES | CAMEL_ARG_PTR, 
     80        CAMEL_FOLDER_PROPERTIES = CAMEL_FOLDER_ARG_PROPERTIES | CAMEL_ARG_PTR 
    8181}; 
    8282 
  • trunk/libtinymail-camel/camel-lite/camel/camel-gpg-context.c

    r2132 r2815  
    169169        GPG_CTX_MODE_DECRYPT, 
    170170        GPG_CTX_MODE_IMPORT, 
    171         GPG_CTX_MODE_EXPORT, 
     171        GPG_CTX_MODE_EXPORT 
    172172}; 
    173173 
  • trunk/libtinymail-camel/camel-lite/camel/camel-html-parser.h

    r1943 r2815  
    5555        CAMEL_HTML_PARSER_VAL_ENT,              /* entity in value */ 
    5656        CAMEL_HTML_PARSER_EOD,                  /* end of current data */ 
    57         CAMEL_HTML_PARSER_EOF,                        /* end of file */ 
     57        CAMEL_HTML_PARSER_EOF                 /* end of file */ 
    5858} camel_html_parser_t; 
    5959 
  • trunk/libtinymail-camel/camel-lite/camel/camel-http-stream.h

    r2737 r2815  
    4040        /*CAMEL_HTTP_METHOD_OPTIONS,*/ 
    4141        CAMEL_HTTP_METHOD_GET, 
    42         CAMEL_HTTP_METHOD_HEAD, 
     42        CAMEL_HTTP_METHOD_HEAD 
    4343        /*CAMEL_HTTP_METHOD_POST,*/ 
    4444        /*CAMEL_HTTP_METHOD_PUT,*/ 
  • trunk/libtinymail-camel/camel-lite/camel/camel-lock-helper.h

    r1943 r2815  
    4848        CAMEL_LOCK_HELPER_STATUS_NOMEM, 
    4949        CAMEL_LOCK_HELPER_STATUS_SYSTEM, 
    50         CAMEL_LOCK_HELPER_STATUS_INVALID, /* not allowed to lock/doesn't exist etc */ 
     50        CAMEL_LOCK_HELPER_STATUS_INVALID /* not allowed to lock/doesn't exist etc */ 
    5151}; 
    5252 
     
    5454enum { 
    5555        CAMEL_LOCK_HELPER_LOCK = 0xf0f, 
    56         CAMEL_LOCK_HELPER_UNLOCK = 0xf0f0, 
     56        CAMEL_LOCK_HELPER_UNLOCK = 0xf0f0 
    5757}; 
    5858 
  • trunk/libtinymail-camel/camel-lite/camel/camel-lock.h

    r1943 r2815  
    3838typedef enum { 
    3939        CAMEL_LOCK_READ, 
    40         CAMEL_LOCK_WRITE, 
     40        CAMEL_LOCK_WRITE 
    4141} CamelLockType; 
    4242 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-basic.h

    r1943 r2815  
    3939        CAMEL_MIME_FILTER_BASIC_QP_DEC, 
    4040        CAMEL_MIME_FILTER_BASIC_UU_ENC, 
    41         CAMEL_MIME_FILTER_BASIC_UU_DEC, 
     41        CAMEL_MIME_FILTER_BASIC_UU_DEC 
    4242} CamelMimeFilterBasicType; 
    4343 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-bestenc.h

    r1943 r2815  
    4242        CAMEL_BESTENC_LF_IS_CRLF = 1<<8, 
    4343        /* do we not allow "From " to appear at the start of a line in any part? */ 
    44         CAMEL_BESTENC_NO_FROM = 1<<9, 
     44        CAMEL_BESTENC_NO_FROM = 1<<9 
    4545} CamelBestencRequired; 
    4646 
     
    5151         
    5252        /* is the content stream to be treated as text? */ 
    53         CAMEL_BESTENC_TEXT = 1<<8, 
     53        CAMEL_BESTENC_TEXT = 1<<8 
    5454} CamelBestencEncoding; 
    5555 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-canon.h

    r1943 r2815  
    3939        CAMEL_MIME_FILTER_CANON_CRLF = (1<<0), /* canoncialise end of line to crlf, otherwise canonicalise to lf only */ 
    4040        CAMEL_MIME_FILTER_CANON_FROM = (1<<1), /* escape "^From " using quoted-printable semantics into "=46rom " */ 
    41         CAMEL_MIME_FILTER_CANON_STRIP = (1<<2),       /* strip trailing space */ 
     41        CAMEL_MIME_FILTER_CANON_STRIP = (1<<2)        /* strip trailing space */ 
    4242}; 
    4343 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-crlf.h

    r1943 r2815  
    4343typedef enum { 
    4444        CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS, 
    45         CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY, 
     45        CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY 
    4646} CamelMimeFilterCRLFMode; 
    4747 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-gzip.c

    r1022 r2815  
    4444        GZIP_FLAG_RESERVED0 = (1 << 5), 
    4545        GZIP_FLAG_RESERVED1 = (1 << 6), 
    46         GZIP_FLAG_RESERVED2 = (1 << 7), 
     46        GZIP_FLAG_RESERVED2 = (1 << 7) 
    4747}; 
    4848 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-filter-pgp.c

    r1943 r2815  
    4444        PGP_HEADER, 
    4545        PGP_MESSAGE, 
    46         PGP_FOOTER, 
     46        PGP_FOOTER 
    4747}; 
    4848 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-parser.h

    r1943 r2815  
    6060        CAMEL_MIME_PARSER_STATE_BODY_END,       /* end of message */ 
    6161        CAMEL_MIME_PARSER_STATE_MULTIPART_END,  /* end of multipart  */ 
    62         CAMEL_MIME_PARSER_STATE_MESSAGE_END,    /* end of message */ 
     62        CAMEL_MIME_PARSER_STATE_MESSAGE_END     /* end of message */ 
    6363} camel_mime_parser_state_t; 
    6464 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-part.c

    r2287 r2815  
    115115        g_hash_table_insert (header_name_table, "Content-Type", (gpointer)HEADER_CONTENT_TYPE); 
    116116 
    117         header_formatted_table = g_hash_table_new (camel_strcase_hash, camel_strcase_equal); 
    118         g_hash_table_insert(header_formatted_table, "Content-Type", write_raw); 
    119         g_hash_table_insert(header_formatted_table, "Content-Disposition", write_raw); 
    120         g_hash_table_insert(header_formatted_table, "To", write_raw); 
    121         g_hash_table_insert(header_formatted_table, "From", write_raw); 
    122         g_hash_table_insert(header_formatted_table, "Reply-To", write_raw); 
    123         g_hash_table_insert(header_formatted_table, "Cc", write_raw); 
    124         g_hash_table_insert(header_formatted_table, "Bcc", write_raw); 
    125         g_hash_table_insert(header_formatted_table, "Message-ID", write_raw); 
    126         g_hash_table_insert(header_formatted_table, "In-Reply-To", write_raw); 
    127         g_hash_table_insert(header_formatted_table, "References", write_references); 
     117        header_formatted_table = g_hash_table_new (camel_strcase_hash, (gpointer)camel_strcase_equal); 
     118        g_hash_table_insert(header_formatted_table, "Content-Type", (gpointer)write_raw); 
     119        g_hash_table_insert(header_formatted_table, "Content-Disposition", (gpointer)write_raw); 
     120        g_hash_table_insert(header_formatted_table, "To", (gpointer)write_raw); 
     121        g_hash_table_insert(header_formatted_table, "From", (gpointer)write_raw); 
     122        g_hash_table_insert(header_formatted_table, "Reply-To", (gpointer)write_raw); 
     123        g_hash_table_insert(header_formatted_table, "Cc", (gpointer)write_raw); 
     124        g_hash_table_insert(header_formatted_table, "Bcc", (gpointer)write_raw); 
     125        g_hash_table_insert(header_formatted_table, "Message-ID", (gpointer)write_raw); 
     126        g_hash_table_insert(header_formatted_table, "In-Reply-To", (gpointer)write_raw); 
     127        g_hash_table_insert(header_formatted_table, "References", (gpointer)write_references); 
    128128} 
    129129 
  • trunk/libtinymail-camel/camel-lite/camel/camel-mime-utils.h

    r1943 r2815  
    261261        CAMEL_MIME_IS_ESAFE     = 1<<7, /* encoded word safe */ 
    262262        CAMEL_MIME_IS_PSAFE     = 1<<8, /* encoded word in phrase safe */ 
    263         CAMEL_MIME_IS_ATTRCHAR  = 1<<9,       /* attribute-char safe (rfc2184) */ 
     263        CAMEL_MIME_IS_ATTRCHAR  = 1<<9        /* attribute-char safe (rfc2184) */ 
    264264}; 
    265265 
  • trunk/libtinymail-camel/camel-lite/camel/camel-multipart-encrypted.h

    r1943 r2815  
    4040enum { 
    4141        CAMEL_MULTIPART_ENCRYPTED_VERSION, 
    42         CAMEL_MULTIPART_ENCRYPTED_CONTENT, 
     42        CAMEL_MULTIPART_ENCRYPTED_CONTENT 
    4343}; 
    4444 
  • trunk/libtinymail-camel/camel-lite/camel/camel-multipart-signed.h

    r2713 r2815  
    4949enum { 
    5050        CAMEL_MULTIPART_SIGNED_CONTENT, 
    51         CAMEL_MULTIPART_SIGNED_SIGNATURE, 
     51        CAMEL_MULTIPART_SIGNED_SIGNATURE 
    5252}; 
    5353 
  • trunk/libtinymail-camel/camel-lite/camel/camel-multipart.c

    r2681 r2815  
    375375        if (!boundary) { 
    376376                /* Generate a fairly random boundary string. */ 
    377                 bgen = g_strdup_printf ("%p:%lu:%lu", multipart, 
     377                bgen = g_strdup_printf ("%p:%lu:%lu", (void *) multipart, 
    378378                                        (unsigned long) getpid(), 
    379379                                        (unsigned long) time(0)); 
  • trunk/libtinymail-camel/camel-lite/camel/camel-object.c

    r2555 r2815  
    10241024        } 
    10251025 
    1026         g_warning("Object %p (class '%s') doesn't have '%s' in its hierarchy", o, o->klass->name, ctype->name); 
     1026        g_warning("Object %p (class '%s') doesn't have '%s' in its hierarchy", (void *) o, o->klass->name, ctype->name); 
    10271027 
    10281028        return NULL; 
     
    13951395 
    13961396        g_warning("camel_object_unhook_event: cannot find hook/data pair %p/%p in an instance of `%s' attached to `%s'", 
    1397                   func, data, obj->klass->name, name); 
     1397                  (void *) func, data, obj->klass->name, name); 
    13981398        g_static_rec_mutex_unlock (&hooks_lock); 
    13991399} 
     
    18921892 
    18931893                        while (pair) { 
    1894                                 printf("%s  event '%s' prep %p\n", p, pair->name, pair->func.prep); 
     1894                                printf("%s  event '%s' prep %p\n", p, pair->name, (void *) pair->func.prep); 
    18951895                                pair = pair->next; 
    18961896          &nbs