aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-09-20 02:43:17 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-09-20 02:43:17 +0000
commitd73e3bb581deb1e1b9645780785bc78af3796b41 (patch)
treec49441039830be24c2ef627461a9ae69dd5f9720 /libsylph
parentc2dbb1ce00b5ccdc7c6a3aa8d880d88658446654 (diff)
removed all warnings output with -Wall.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1910 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/imap.c2
-rw-r--r--libsylph/procmime.c2
-rw-r--r--libsylph/procmsg.c2
-rw-r--r--libsylph/procmsg.h4
-rw-r--r--libsylph/utils.c1
5 files changed, 6 insertions, 5 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index cc33ab2a..eac178e0 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -1778,7 +1778,6 @@ static gint imap_scan_tree_recursive(IMAPSession *session, FolderItem *item,
GSList *item_list)
{
Folder *folder;
- IMAPFolder *imapfolder;
FolderItem *new_item;
GSList *part_list, *cur;
GNode *node;
@@ -1896,7 +1895,6 @@ static GSList *imap_get_folder_list(IMAPSession *session, FolderItem *item)
gchar *real_path;
gchar *wildcard_path;
gchar separator;
- gchar wildcard[3];
GSList *item_list;
folder = item->folder;
diff --git a/libsylph/procmime.c b/libsylph/procmime.c
index 24fa4441..b06f0d6c 100644
--- a/libsylph/procmime.c
+++ b/libsylph/procmime.c
@@ -1680,7 +1680,7 @@ EncodingType procmime_get_encoding_for_str(const gchar *str)
total_len = strlen(str);
- for (p = str; *p != '\0'; ++p) {
+ for (p = (const guchar *)str; *p != '\0'; ++p) {
if (*p & 0x80)
++octet_chars;
}
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c
index 194dd374..2f7c4e74 100644
--- a/libsylph/procmsg.c
+++ b/libsylph/procmsg.c
@@ -1570,7 +1570,7 @@ MsgInfo *procmsg_get_msginfo(FolderItem *item, gint num)
MsgInfo *msginfo;
FolderType type;
- g_return_if_fail(item->folder != NULL);
+ g_return_val_if_fail(item->folder != NULL, NULL);
msginfo = folder_item_get_msginfo(item, num);
if (!msginfo)
diff --git a/libsylph/procmsg.h b/libsylph/procmsg.h
index 8456cdc9..34a63bb0 100644
--- a/libsylph/procmsg.h
+++ b/libsylph/procmsg.h
@@ -309,6 +309,10 @@ gint procmsg_save_to_outbox (FolderItem *outbox,
void procmsg_print_message (MsgInfo *msginfo,
const gchar *cmdline,
gboolean all_headers);
+void procmsg_print_message_part (MsgInfo *msginfo,
+ MimeInfo *partinfo,
+ const gchar *cmdline,
+ gboolean all_headers);
MsgInfo *procmsg_get_msginfo (FolderItem *item,
gint num);
diff --git a/libsylph/utils.c b/libsylph/utils.c
index 879a129e..b4db125f 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -489,7 +489,6 @@ gboolean is_next_nonascii(const gchar *s)
gint get_next_word_len(const gchar *s)
{
const gchar *p = s;
- gint len = 0;
gboolean in_quote = FALSE;
while (*p != '\0') {