Revision: 1130 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1130&view=re... Author: frlan Date: 2010-01-17 13:22:49 +0000 (Sun, 17 Jan 2010)
Log Message: ----------- GeanyLaTeX: Fixing some more compiler warnings
Modified Paths: -------------- trunk/geanylatex/src/templates.c
Modified: trunk/geanylatex/src/templates.c =================================================================== --- trunk/geanylatex/src/templates.c 2010-01-17 13:22:01 UTC (rev 1129) +++ trunk/geanylatex/src/templates.c 2010-01-17 13:22:49 UTC (rev 1130) @@ -41,7 +41,7 @@ { TemplateEntry *template = g_new0(TemplateEntry, 1); gchar *tmp = NULL; - + /* Return if its not a searched file */ if (g_str_has_suffix(file,".gtl") == FALSE) return; @@ -51,7 +51,7 @@ tmp = g_path_get_basename(file); template->label = utils_remove_ext_from_filename(tmp); g_free(tmp); - + /* Adding struct to array */ template->template = glatex_get_template_from_file(file); g_ptr_array_add(array, template); @@ -60,7 +60,6 @@
GPtrArray* glatex_init_custom_templates() { - guint *length = NULL; gchar *tmp_basedir = NULL; GSList *file_list = NULL; GPtrArray *templates = NULL; @@ -84,7 +83,7 @@ }
/* Frees all elelements of struct */ -void glatex_free_TemplateEntry(TemplateEntry *template, gpointer *data){ +void glatex_free_TemplateEntry(TemplateEntry *template, G_GNUC_UNUSED gpointer *data){ if (template->label != NULL) g_free(template->label); if (template->label != NULL) @@ -96,7 +95,7 @@
void glatex_add_templates_to_combobox(GPtrArray *templates, GtkWidget *combobox) { - gint i; + guint i; TemplateEntry *tmp; for (i = 0; i < templates->len; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org