anjuta r4414 - in trunk: . libanjuta
- From: naba svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4414 - in trunk: . libanjuta
- Date: Sun, 30 Nov 2008 13:30:44 +0000 (UTC)
Author: naba
Date: Sun Nov 30 13:30:44 2008
New Revision: 4414
URL: http://svn.gnome.org/viewvc/anjuta?rev=4414&view=rev
Log:
* libanjuta/anjuta-c-module.c (anjuta_c_module_get_last_error):
* libanjuta/anjuta-session.c (anjuta_session_clear):
* libanjuta/anjuta-utils.c (anjuta_util_dialog_error),
(anjuta_util_dialog_warning), (anjuta_util_dialog_info),
(anjuta_util_dialog_error_system),
(anjuta_util_dialog_boolean_question): Fixes build warnings. Part of
Bug #558910: libanjuta has several warnings
Modified:
trunk/ChangeLog
trunk/libanjuta/anjuta-c-module.c
trunk/libanjuta/anjuta-session.c
trunk/libanjuta/anjuta-utils.c
Modified: trunk/libanjuta/anjuta-c-module.c
==============================================================================
--- trunk/libanjuta/anjuta-c-module.c (original)
+++ trunk/libanjuta/anjuta-c-module.c Sun Nov 30 13:30:44 2008
@@ -204,8 +204,8 @@
return TRUE;
case IANJUTA_PLUGIN_FACTORY_INVALID_MODULE:
g_set_error (err, IANJUTA_PLUGIN_FACTORY_ERROR,
- module->error,
- g_module_error());
+ module->error,
+ "%s", g_module_error());
return TRUE;
case IANJUTA_PLUGIN_FACTORY_MISSING_FUNCTION:
g_set_error (err, IANJUTA_PLUGIN_FACTORY_ERROR,
Modified: trunk/libanjuta/anjuta-session.c
==============================================================================
--- trunk/libanjuta/anjuta-session.c (original)
+++ trunk/libanjuta/anjuta-session.c Sun Nov 30 13:30:44 2008
@@ -168,6 +168,7 @@
{
gchar *path;
gchar *filename, *cmd;
+ gint ret;
g_return_if_fail (ANJUTA_IS_SESSION (session));
@@ -180,11 +181,11 @@
anjuta_session_sync (session);
cmd = g_strconcat ("mkdir -p ", session->priv->dir_path, NULL);
- system (cmd);
+ ret = system (cmd);
g_free (cmd);
cmd = g_strconcat ("rm -fr ", session->priv->dir_path, "/*", NULL);
- system (cmd);
+ ret = system (cmd);
g_free (cmd);
}
Modified: trunk/libanjuta/anjuta-utils.c
==============================================================================
--- trunk/libanjuta/anjuta-utils.c (original)
+++ trunk/libanjuta/anjuta-utils.c Sun Nov 30 13:30:44 2008
@@ -276,7 +276,7 @@
dialog = gtk_message_dialog_new (real_parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE, message);
+ GTK_BUTTONS_CLOSE, "%s", message);
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
@@ -308,7 +308,7 @@
dialog = gtk_message_dialog_new (real_parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
- GTK_BUTTONS_CLOSE, message);
+ GTK_BUTTONS_CLOSE, "%s", message);
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
@@ -339,7 +339,7 @@
dialog = gtk_message_dialog_new (real_parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
- GTK_BUTTONS_CLOSE, message);
+ GTK_BUTTONS_CLOSE, "%s", message);
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
@@ -379,7 +379,7 @@
dialog = gtk_message_dialog_new (real_parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE, tot_mesg);
+ GTK_BUTTONS_CLOSE, "%s", tot_mesg);
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
@@ -411,7 +411,7 @@
dialog = gtk_message_dialog_new (real_parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_YES_NO, message);
+ GTK_BUTTONS_YES_NO, "%s", message);
ret = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
@@ -925,6 +925,7 @@
{
pid_t pid;
gchar *shell;
+ gint err;
g_return_val_if_fail (command != NULL, -1);
@@ -935,7 +936,7 @@
if(dir)
{
anjuta_util_create_dir (dir);
- chdir (dir);
+ err = chdir (dir);
}
execlp (shell, shell, "-c", command, NULL);
g_warning (_("Cannot execute command: %s (using shell %s)\n"), command, shell);
@@ -1682,15 +1683,15 @@
{
while ((tmp_str = va_arg (str_list, const gchar*)) != NULL)
{
- g_ptr_array_add (str_arr, tmp_str);
+ g_ptr_array_add (str_arr, (gpointer)tmp_str);
}
va_end (str_list);
}
/* Terminate the list */
- g_ptr_array_add (str_arr, (gpointer) NULL);
+ g_ptr_array_add (str_arr, NULL);
- path = g_build_filenamev ((gchar*) str_arr->pdata);
+ path = g_build_filenamev ((gchar **)str_arr->pdata);
g_ptr_array_free (str_arr, TRUE);
return path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]