/soc/2013/ankitkv/gobjectification: 267e820a9301: Removed warnings

Ankit Vani a at nevitus.org
Sun Nov 17 09:54:22 EST 2013


Changeset: 267e820a93013e8b8703e81a3955a847596afc4c
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-11-17 20:22 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/267e820a9301

Description:

Removed warnings

diffstat:

 libpurple/request-datasheet.c |  2 +-
 pidgin/gtkrequest.c           |  5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diffs (38 lines):

diff --git a/libpurple/request-datasheet.c b/libpurple/request-datasheet.c
--- a/libpurple/request-datasheet.c
+++ b/libpurple/request-datasheet.c
@@ -426,7 +426,7 @@ purple_request_datasheet_record_set_imag
 	purple_request_datasheet_record_set_common_data(rec, col_no, stock_id);
 }
 
-const gchar *
+static const gchar *
 purple_request_datasheet_record_get_common_data(
 	const PurpleRequestDatasheetRecord *rec, guint col_no)
 {
diff --git a/pidgin/gtkrequest.c b/pidgin/gtkrequest.c
--- a/pidgin/gtkrequest.c
+++ b/pidgin/gtkrequest.c
@@ -1686,13 +1686,10 @@ datasheet_button_check_sens(GtkWidget *b
 static void
 datasheet_selection_changed(GtkWidget *sheet_widget)
 {
-	PurpleRequestDatasheetRecord *rec;
 	GtkVBox *buttons_box;
 
 	g_return_if_fail(sheet_widget != NULL);
 
-	rec = datasheet_get_selected_row(sheet_widget);
-
 	buttons_box = GTK_VBOX(g_object_get_data(G_OBJECT(sheet_widget),
 		"buttons"));
 	gtk_container_foreach(GTK_CONTAINER(buttons_box),
@@ -1887,7 +1884,7 @@ create_datasheet_field(PurpleRequestFiel
 	for (i = 0; i < col_count; i++) {
 		PurpleRequestDatasheetColumnType type;
 		const gchar *title;
-		GtkCellRenderer *renderer;
+		GtkCellRenderer *renderer = NULL;
 		const gchar *type_str = "";
 
 		type = purple_request_datasheet_get_column_type(sheet, i);



More information about the Commits mailing list