SF.net SVN: geany-plugins:[635] trunk/geanygdb/src/geanydebug.c

dmaphy at users.sourceforge.net dmaphy at xxxxx
Sun May 10 21:20:18 UTC 2009


Revision: 635
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=635&view=rev
Author:   dmaphy
Date:     2009-05-10 21:20:18 +0000 (Sun, 10 May 2009)

Log Message:
-----------
fix compiler warnings (patch by eth16, thanks!)

Modified Paths:
--------------
    trunk/geanygdb/src/geanydebug.c

Modified: trunk/geanygdb/src/geanydebug.c
===================================================================
--- trunk/geanygdb/src/geanydebug.c	2009-05-09 20:04:40 UTC (rev 634)
+++ trunk/geanygdb/src/geanydebug.c	2009-05-10 21:20:18 UTC (rev 635)
@@ -24,6 +24,8 @@
 
 #include "geany.h"
 
+#include <glib/gstdio.h>
+
 #ifdef HAVE_LOCALE_H
 # include <locale.h>
 #endif
@@ -53,7 +55,7 @@
 PLUGIN_VERSION_CHECK(115)
 PLUGIN_SET_INFO(_("Debugger"), _("Integrated debugging with GDB."), VERSION, _("Jeff Pohlmeyer"))
 
-static GeanyData *geany_data;
+GeanyData *geany_data;
 GeanyFunctions *geany_functions;
 
 static GtkNotebook *msgbook;
@@ -272,12 +274,14 @@
 update_settings_cb()
 {
 	GKeyFile *kf = g_key_file_new();
+	gchar *data;
+
 	g_key_file_set_string(kf, UNIX_NAME, "mono_font", gdbui_setup.options.mono_font);
 	g_key_file_set_string(kf, UNIX_NAME, "term_cmd", gdbui_setup.options.term_cmd);
 	g_key_file_set_boolean(kf, UNIX_NAME, "show_tooltips", gdbui_setup.options.show_tooltips);
 	g_key_file_set_boolean(kf, UNIX_NAME, "show_icons", gdbui_setup.options.show_icons);
 
-	gchar *data = g_key_file_to_data(kf, NULL, NULL);
+	data = g_key_file_to_data(kf, NULL, NULL);
 	utils_write_file(config_file, data);
 	g_free(data);
 
@@ -340,7 +344,6 @@
 {
 	GKeyFile *kf = g_key_file_new();
 	GError *err = NULL;
-	geany_data = data;
 	gchar *glob_file;
 	gchar *user_file;
 	gchar *old_config_dir;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list