gobjectification: 0507087a: Minor warning fixes.

qulogic at pidgin.im qulogic at pidgin.im
Fri Jul 9 01:12:17 EDT 2010


----------------------------------------------------------------------
Revision: 0507087a88b9f7ed8d4f36d87d47b78a8554e202
Parent:   8a2c3cae36fd409ef7c364aa2842291dc148a71e
Author:   qulogic at pidgin.im
Date:     07/07/10 23:42:26
Branch:   im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/0507087a88b9f7ed8d4f36d87d47b78a8554e202

Changelog: 

Minor warning fixes.

Changes against parent 8a2c3cae36fd409ef7c364aa2842291dc148a71e

  patched  libpurple/protocols/jabber/roster.c
  patched  pidgin/gtkblist.c

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	7a28c20464aed9b41ab18cfa3b14fbcbdbe3b162
+++ pidgin/gtkblist.c	d2804e5f867f276d73620213543d951c3e813ad2
@@ -6971,7 +6971,7 @@ groups_tree(void)
 groups_tree(void)
 {
 	static GList *list = NULL;
-	char *tmp2;
+	const char *tmp2;
 	PurpleGroup *g;
 	PurpleBlistNode *gnode;
 
@@ -6992,7 +6992,7 @@ groups_tree(void)
 			{
 				g    = (PurpleGroup *)gnode;
 				tmp2 = purple_group_get_name(g);
-				list  = g_list_append(list, tmp2);
+				list  = g_list_append(list, (gpointer)tmp2);
 			}
 		}
 	}
============================================================
--- libpurple/protocols/jabber/roster.c	ab200b8c2c23d8a785f55f279a87ca369d9aa22d
+++ libpurple/protocols/jabber/roster.c	1fcb787f571781babcf811db970dee0856b25d18
@@ -172,7 +172,8 @@ static void add_purple_buddy_to_groups(J
 
 	while(groups) {
 		PurpleGroup *g = purple_group_new(groups->data);
-		PurpleBuddy *b = purple_buddy_new(account, jid, alias, PURPLE_BLIST_NODE(g));
+		/* Ignored return. It'll be placed in the group where it belongs. */
+		purple_buddy_new(account, jid, alias, PURPLE_BLIST_NODE(g));
 
 		g_free(groups->data);
 		groups = g_slist_delete_link(groups, groups);


More information about the Commits mailing list