gnome-commander r1996 - in trunk/src: . intviewer
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1996 - in trunk/src: . intviewer
- Date: Mon, 25 Aug 2008 17:20:49 +0000 (UTC)
Author: epiotr
Date: Mon Aug 25 17:20:49 2008
New Revision: 1996
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1996&view=rev
Log:
gcc warnings cleanup
Modified:
trunk/src/eggcellrendererkeys.cc
trunk/src/gnome-cmd-about-plugin.cc
trunk/src/gnome-cmd-data.cc
trunk/src/gnome-cmd-search-dialog.cc
trunk/src/intviewer/scroll-box.cc
trunk/src/plugin_manager.cc
Modified: trunk/src/eggcellrendererkeys.cc
==============================================================================
--- trunk/src/eggcellrendererkeys.cc (original)
+++ trunk/src/eggcellrendererkeys.cc Mon Aug 25 17:20:49 2008
@@ -686,7 +686,7 @@
if (changed)
{
// sync string to the key values
- GtkCellRendererText *celltext = GTK_CELL_RENDERER_TEXT (keys);
+ // GtkCellRendererText *celltext = GTK_CELL_RENDERER_TEXT (keys);
char *text = egg_accelerator_get_label (keys->accel_key, keys->accel_mask);
g_object_set (keys, "text", text, NULL);
g_free (text);
Modified: trunk/src/gnome-cmd-about-plugin.cc
==============================================================================
--- trunk/src/gnome-cmd-about-plugin.cc (original)
+++ trunk/src/gnome-cmd-about-plugin.cc Mon Aug 25 17:20:49 2008
@@ -337,9 +337,8 @@
static void gnome_cmd_about_plugin_class_init (GnomeCmdAboutPluginClass *klass)
{
- GObjectClass *object_class = (GObjectClass *)klass;
- GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
- GtkDialogClass *dialog_class = (GtkDialogClass *)klass;
+ GObjectClass *object_class = (GObjectClass *) klass;
+ GtkDialogClass *dialog_class = (GtkDialogClass *) klass;
object_class->set_property = gnome_cmd_about_plugin_set_property;
object_class->get_property = gnome_cmd_about_plugin_get_property;
Modified: trunk/src/gnome-cmd-data.cc
==============================================================================
--- trunk/src/gnome-cmd-data.cc (original)
+++ trunk/src/gnome-cmd-data.cc Mon Aug 25 17:20:49 2008
@@ -385,7 +385,7 @@
g_warning ("%s: ignored duplicate entry: %s", path, alias2);
else
{
- gchar *scheme2 = a[1];
+ // gchar *scheme2 = a[1];
gchar *host2 = gnome_vfs_unescape_string (a[3], NULL);
gchar *remote_dir2 = gnome_vfs_unescape_string (a[5], NULL);
gchar *user2 = gnome_vfs_unescape_string (a[6], NULL);
Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc (original)
+++ trunk/src/gnome-cmd-search-dialog.cc Mon Aug 25 17:20:49 2008
@@ -183,7 +183,7 @@
return NULL;
}
- if (searchfile_data->len != NULL)
+ if (searchfile_data->len)
{
if ((searchfile_data->offset + searchfile_data->len) >= finfo->info->size)
{ // end, all has been read
Modified: trunk/src/intviewer/scroll-box.cc
==============================================================================
--- trunk/src/intviewer/scroll-box.cc (original)
+++ trunk/src/intviewer/scroll-box.cc Mon Aug 25 17:20:49 2008
@@ -159,7 +159,7 @@
g_return_val_if_fail (IS_SCROLL_BOX (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
- ScrollBox *w = SCROLL_BOX (widget);
+ // ScrollBox *w = SCROLL_BOX (widget);
return FALSE;
}
Modified: trunk/src/plugin_manager.cc
==============================================================================
--- trunk/src/plugin_manager.cc (original)
+++ trunk/src/plugin_manager.cc Mon Aug 25 17:20:49 2008
@@ -142,7 +142,8 @@
static void scan_plugins_in_dir (const gchar *dpath)
{
DIR *dir = opendir (dpath);
- char prev_dir[256];
+ char buff[256];
+ char *prev_dir;
struct dirent *ent;
if (dir == NULL)
@@ -153,7 +154,7 @@
return;
}
- getcwd (prev_dir, sizeof(prev_dir));
+ prev_dir = getcwd (buff, sizeof(buff));
chdir (dpath);
while ((ent = readdir (dir)) != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]