[gnome-commander] Fix some gcc warnings
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix some gcc warnings
- Date: Sat, 12 Feb 2011 17:48:30 +0000 (UTC)
commit 596bdb85052bb0aba7b52c9f3ad4137c6a5abbfa
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Feb 12 18:47:29 2011 +0100
Fix some gcc warnings
src/dialogs/gnome-cmd-manage-bookmarks-dialog.cc | 1 -
src/dialogs/gnome-cmd-mkdir-dialog.cc | 2 +-
src/gnome-cmd-con-ftp.cc | 2 --
src/gnome-cmd-con-home.cc | 2 --
src/gnome-cmd-con-smb.cc | 4 ----
src/gnome-cmd-dir-indicator.cc | 1 -
src/gnome-cmd-options-dialog.cc | 2 +-
7 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-manage-bookmarks-dialog.cc b/src/dialogs/gnome-cmd-manage-bookmarks-dialog.cc
index 381e3a9..1050bb7 100644
--- a/src/dialogs/gnome-cmd-manage-bookmarks-dialog.cc
+++ b/src/dialogs/gnome-cmd-manage-bookmarks-dialog.cc
@@ -190,7 +190,6 @@ static GtkTreeModel *create_and_fill_model (GtkTreePath *¤t_group)
for (GList *all_cons = gnome_cmd_con_list_get_all (gnome_cmd_con_list_get ()); all_cons; all_cons = all_cons->next)
{
GnomeCmdCon *con = (GnomeCmdCon *) all_cons->data;
- GnomeCmdPixmap *pixmap = gnome_cmd_con_get_open_pixmap (con);
GnomeCmdBookmarkGroup *group = gnome_cmd_con_get_bookmarks (con);
if (!group || !group->bookmarks)
diff --git a/src/dialogs/gnome-cmd-mkdir-dialog.cc b/src/dialogs/gnome-cmd-mkdir-dialog.cc
index d3a1b03..dda6508 100644
--- a/src/dialogs/gnome-cmd-mkdir-dialog.cc
+++ b/src/dialogs/gnome-cmd-mkdir-dialog.cc
@@ -177,7 +177,7 @@ gboolean gnome_cmd_mkdir_dialog_new (GnomeCmdDir *dir, GnomeCmdFile *selected_fi
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 5);
gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->action_area),6);
#endif
- GtkWidget *table, *align, *label, *entry;
+ GtkWidget *table, *label, *entry;
table = gtk_table_new (3, 2, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 5);
diff --git a/src/gnome-cmd-con-ftp.cc b/src/gnome-cmd-con-ftp.cc
index 1ef9ba9..66bfb86 100644
--- a/src/gnome-cmd-con-ftp.cc
+++ b/src/gnome-cmd-con-ftp.cc
@@ -144,8 +144,6 @@ static GnomeCmdPath *ftp_create_path (GnomeCmdCon *con, const gchar *path_str)
static void destroy (GtkObject *object)
{
- GnomeCmdConFtp *con = GNOME_CMD_CON_FTP (object);
-
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
diff --git a/src/gnome-cmd-con-home.cc b/src/gnome-cmd-con-home.cc
index 692197b..6be697c 100644
--- a/src/gnome-cmd-con-home.cc
+++ b/src/gnome-cmd-con-home.cc
@@ -78,8 +78,6 @@ static GnomeCmdPath *home_create_path (GnomeCmdCon *con, const gchar *path_str)
static void destroy (GtkObject *object)
{
- GnomeCmdConHome *con = GNOME_CMD_CON_HOME (object);
-
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
diff --git a/src/gnome-cmd-con-smb.cc b/src/gnome-cmd-con-smb.cc
index bb42b8c..062bbc7 100644
--- a/src/gnome-cmd-con-smb.cc
+++ b/src/gnome-cmd-con-smb.cc
@@ -40,8 +40,6 @@ get_file_info_callback (GnomeVFSAsyncHandle *handle,
{
g_return_if_fail (results != NULL);
- GnomeCmdConSmb *smb_con = GNOME_CMD_CON_SMB (con);
-
if (con->state == GnomeCmdCon::STATE_OPENING)
{
GnomeVFSGetFileInfoResult *r = (GnomeVFSGetFileInfoResult *) results->data;
@@ -168,8 +166,6 @@ static GnomeCmdPath *smb_create_path (GnomeCmdCon *con, const gchar *path_str)
static void destroy (GtkObject *object)
{
- GnomeCmdConSmb *con = GNOME_CMD_CON_SMB (object);
-
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index 59d01c7..c267a0a 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -73,7 +73,6 @@ static void destroy (GtkObject *object)
static void class_init (GnomeCmdDirIndicatorClass *klass)
{
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
parent_class = (GtkFrameClass *) gtk_type_class (gtk_frame_get_type ());
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 3e4d37f..362689c 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -259,7 +259,7 @@ static void on_date_format_update (GtkEditable *editable, GtkWidget *options_dia
static GtkWidget *create_format_tab (GtkWidget *parent)
{
GtkWidget *frame, *hbox, *vbox, *cat, *cat_box, *table;
- GtkWidget *radio, *label, *entry, *button;
+ GtkWidget *radio, *label, *entry;
frame = create_tabframe (parent);
hbox = create_tabhbox (parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]