[file-roller] fixed some compiler warngins.



commit f8ea0424e10d682ad2f99a3ae95cd5b01221eace
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Nov 29 20:40:35 2010 +0100

    fixed some compiler warngins.

 src/fr-command-lrzip.c |    3 +--
 src/fr-init.c          |    3 ++-
 src/fr-window.c        |    1 -
 src/gtk-utils.c        |    3 ---
 4 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/fr-command-lrzip.c b/src/fr-command-lrzip.c
index 6a2833c..80f8862 100644
--- a/src/fr-command-lrzip.c
+++ b/src/fr-command-lrzip.c
@@ -51,12 +51,11 @@ list__process_line (char     *line,
 	fdata->size = g_ascii_strtoull (get_last_field (line, 4), NULL, 10);
 
 	struct stat st;
-	time_t tt;
 	if (stat (comm->filename, &st) == 0)
 		fdata->modified = st.st_mtim.tv_sec;
 	else
 		time(&(fdata->modified));
-	fdata->modified;
+
 	fdata->encrypted = FALSE;
 
 	char *new_fname = g_strdup (file_name_from_path (comm->filename));
diff --git a/src/fr-init.c b/src/fr-init.c
index 2ddb311..9692759 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -20,6 +20,7 @@
  */
 
 #include <config.h>
+#include <stdlib.h>
 #include <glib/gi18n.h>
 #include "file-data.h"
 #include "file-utils.h"
@@ -592,7 +593,7 @@ compute_supported_archive_types (void)
 }
 
 
-static initialized = FALSE;
+static gboolean initialized = FALSE;
 
 
 void
diff --git a/src/fr-window.c b/src/fr-window.c
index 1b5e2e3..0be77f8 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5425,7 +5425,6 @@ fr_window_construct (FrWindow *window)
 	GtkWidget        *sidepane_title_label;
 	GtkWidget        *close_sidepane_button;
 	GtkTreeSelection *selection;
-	int               i;
 	int               icon_width, icon_height;
 	GtkActionGroup   *actions;
 	GtkUIManager     *ui;
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index eaadc9c..eca1471 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -157,10 +157,7 @@ create_button (const char *stock_id,
 	       const char *text)
 {
 	GtkWidget    *button;
-	GtkWidget    *hbox;
 	GtkWidget    *image;
-	GtkWidget    *label;
-	GtkWidget    *align;
 	const char   *label_text;
 	gboolean      text_is_stock;
 	GtkStockItem  stock_item;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]