cpw.qulogic.gtk3: 3efb4afc: Silence a warning.

qulogic at pidgin.im qulogic at pidgin.im
Sun Oct 9 04:34:34 EDT 2011


----------------------------------------------------------------------
Revision: 3efb4afc701d9171c472e58f2394b484c073efe2
Parent:   be830c5f6481cce1f2940346d17a62635583bffd
Author:   qulogic at pidgin.im
Date:     10/08/11 17:57:46
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/3efb4afc701d9171c472e58f2394b484c073efe2

Changelog: 

Silence a warning.

Changes against parent be830c5f6481cce1f2940346d17a62635583bffd

  patched  pidgin/gtkprefs.c

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	a8c27a586aa0128bbe8cf368a72780dd4ae82c95
+++ pidgin/gtkprefs.c	d338b55da8abb0087cd16d59950a298ebf351c34
@@ -246,7 +246,7 @@ pidgin_prefs_dropdown_from_list(GtkWidge
 	int         int_value  = 0;
 	const char *str_value  = NULL;
 	gboolean    bool_value = FALSE;
-	GtkListStore *store;
+	GtkListStore *store = NULL;
 	GtkTreeIter iter;
 	GtkTreeIter active;
 	GtkCellRenderer *renderer;
@@ -262,6 +262,9 @@ pidgin_prefs_dropdown_from_list(GtkWidge
 	} else if (type == PURPLE_PREF_BOOLEAN) {
 		store = gtk_list_store_new(PREF_DROPDOWN_COUNT, G_TYPE_STRING, G_TYPE_BOOLEAN);
 		stored_bool = purple_prefs_get_bool(key);
+	} else {
+		g_warn_if_reached();
+		return NULL;
 	}
 
 	dropdown = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store));


More information about the Commits mailing list