Revision: 5786 http://geany.svn.sourceforge.net/geany/?rev=5786&view=rev Author: colombanw Date: 2011-05-09 17:38:45 +0000 (Mon, 09 May 2011)
Log Message: ----------- Fix some compiler warnings
* Shadowed function (splitwindow plugin); * Invalid escape sequence (classbuilder plugin); * Non-static local functions (classbuilder plugin); * Missing function argument type (keybindings.c).
Modified Paths: -------------- branches/0.20.1/plugins/classbuilder.c branches/0.20.1/plugins/splitwindow.c branches/0.20.1/src/keybindings.c
Modified: branches/0.20.1/plugins/classbuilder.c =================================================================== --- branches/0.20.1/plugins/classbuilder.c 2011-05-09 17:38:21 UTC (rev 5785) +++ branches/0.20.1/plugins/classbuilder.c 2011-05-09 17:38:45 UTC (rev 5786) @@ -201,7 +201,7 @@ {fileheader}\n\ {namespace_decl}\n\ {base_include}\n\ -{abstract_decl}class {class_name}{base_decl}{implements_decl}\n{\n\ +{abstract_decl}class {class_name}{base_decl}{implements_decl}\n{\n\ {singleton_impl}\ {constructor_impl}\ {destructor_impl}\n\ @@ -356,7 +356,7 @@ }
-void show_dialog_create_class(gint type) +static void show_dialog_create_class(gint type) { CreateClassDialog *cc_dlg; GtkWidget *main_box;
Modified: branches/0.20.1/plugins/splitwindow.c =================================================================== --- branches/0.20.1/plugins/splitwindow.c 2011-05-09 17:38:21 UTC (rev 5785) +++ branches/0.20.1/plugins/splitwindow.c 2011-05-09 17:38:45 UTC (rev 5786) @@ -174,14 +174,14 @@ static GtkWidget *ui_tool_button_new(const gchar *stock_id, const gchar *label, const gchar *tooltip) { GtkToolItem *item; - gchar *dup = NULL; + gchar *dupl = NULL;
if (stock_id && !label) { label = ui_get_stock_label(stock_id); } - dup = utils_str_remove_chars(g_strdup(label), "_"); - label = dup; + dupl = utils_str_remove_chars(g_strdup(label), "_"); + label = dupl;
item = gtk_tool_button_new(NULL, label); if (stock_id) @@ -192,7 +192,7 @@ if (tooltip) ui_widget_set_tooltip_text(GTK_WIDGET(item), tooltip);
- g_free(dup); + g_free(dupl); return GTK_WIDGET(item); }
Modified: branches/0.20.1/src/keybindings.c =================================================================== --- branches/0.20.1/src/keybindings.c 2011-05-09 17:38:21 UTC (rev 5785) +++ branches/0.20.1/src/keybindings.c 2011-05-09 17:38:45 UTC (rev 5786) @@ -1775,7 +1775,7 @@ }
-static void update_filename_label() +static void update_filename_label(void) { if (!switch_dialog) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.