From 40eea3692e4afa02a9092f64c00e9348f562f68b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 11 Aug 2000 02:57:11 +0000 Subject: Fixed some warnings. 2000-08-10 Christopher James Lahey * camel-folder-search.c, camel-folder-summary.c, camel-medium.c, camel-mime-filter-charset.c, camel-mime-filter.c, camel-mime-filter.h, camel-mime-message.c, camel-mime-parser.c, camel-mime-part-utils.c, camel-mime-part.c, camel-mime-utils.c, camel-movemail.c, camel-multipart.c, camel-object.c, camel-stream-mem.c, providers/mbox/camel-mbox-folder.c, providers/mbox/camel-mbox-summary.c, providers/mh/camel-mh-folder.c, providers/smtp/camel-smtp-transport.c: Fixed some warnings. svn path=/trunk/; revision=4719 --- camel/camel-mime-utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-mime-utils.c') diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index edfda90ed8..3e85f4127f 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -541,7 +541,7 @@ int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *statep, int *save) { register unsigned char *inptr, *outptr, *inend; - unsigned char c=0x100; + unsigned char c; register int sofar = *save, /* keeps track of how many chars on a line */ last=*statep; /* keeps track if last char to end was a space cr etc */ @@ -794,7 +794,7 @@ header_decode_lwsp(const char **in) d2(printf("is ws: '%s'\n", *in)); - while (is_lwsp(*inptr) || *inptr =='(' && *inptr != '\0') { + while (is_lwsp(*inptr) || (*inptr =='(' && *inptr != '\0')) { while (is_lwsp(*inptr) && inptr != '\0') { d2(printf("(%c)", *inptr)); inptr++; @@ -1804,7 +1804,9 @@ header_address_decode(const char *in) d(printf("decoding To: '%s'\n", in)); +#ifndef NO_WARNINGS #warning header_to_decode needs to return some structure +#endif if (in == NULL) return NULL; @@ -2562,7 +2564,9 @@ header_address_list_format_append(GString *out, struct _header_address *a) while (a) { switch (a->type) { case HEADER_ADDRESS_NAME: +#ifndef NO_WARNINGS #warning needs to rfc2047 encode address phrase +#endif /* FIXME: 2047 encoding?? */ if (a->name && *a->name) g_string_sprintfa(out, "\"%s\" <%s>", a->name, a->v.addr); -- cgit