[giggle] Fix some compilation warnings



commit b4eb3e582f5d5bc4c097fa9925d80c656dda4c7a
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Nov 23 05:23:24 2010 +0100

    Fix some compilation warnings

 libgiggle-git/giggle-git-ignore.c |    6 +++---
 src/giggle-diff-view.c            |    7 ++++---
 src/giggle-graph-renderer.c       |    6 ++++--
 3 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/libgiggle-git/giggle-git-ignore.c b/libgiggle-git/giggle-git-ignore.c
index 9f5d728..d85a023 100644
--- a/libgiggle-git/giggle-git-ignore.c
+++ b/libgiggle-git/giggle-git-ignore.c
@@ -219,7 +219,7 @@ git_ignore_save_file (GiggleGitIgnore *git_ignore)
 	GiggleGitIgnorePriv *priv;
 	gchar               *path;
 	GString             *content;
-	gint                 i;
+	guint                i;
 
 	priv = git_ignore->priv;
 
@@ -321,7 +321,7 @@ git_ignore_path_matches (const gchar *path,
 			 const gchar *relative_path)
 {
 	gboolean     match = FALSE;
-	gint         n_glob = 0;
+	guint        n_glob = 0;
 	const gchar *glob;
 
 	if (!array) {
@@ -395,7 +395,7 @@ giggle_git_ignore_remove_glob_for_path (GiggleGitIgnore *git_ignore,
 {
 	GiggleGitIgnorePriv *priv;
 	const gchar         *glob;
-	gint                 i = 0;
+	guint                i = 0;
 	gboolean             removed = FALSE;
 	const gchar         *filename;
 
diff --git a/src/giggle-diff-view.c b/src/giggle-diff-view.c
index fdb9f1b..91cc5da 100644
--- a/src/giggle-diff-view.c
+++ b/src/giggle-diff-view.c
@@ -220,7 +220,8 @@ diff_view_set_current_hunk (GiggleDiffView *view,
 			    int             hunk_index)
 {
 	GiggleDiffViewPriv *priv = GET_PRIV (view);
-	int                 hunk_offset, i;
+	guint               i;
+	int                 hunk_offset;
 	GiggleDiffViewHunk *hunk = NULL;
 	GiggleDiffViewFile *file = NULL;
 	GtkTextBuffer      *buffer;
@@ -723,7 +724,7 @@ giggle_diff_view_scroll_to_file (GiggleDiffView *diff_view,
 	GiggleDiffViewHunk *hunk;
 	GiggleDiffViewFile *file;
 	GtkTextMark        *mark;
-	unsigned	    i;
+	gint                i;
 
 	g_return_if_fail (GIGGLE_IS_DIFF_VIEW (diff_view));
 	g_return_if_fail (NULL != filename);
@@ -740,7 +741,7 @@ giggle_diff_view_scroll_to_file (GiggleDiffView *diff_view,
 						      mark, 0.0, TRUE, 0.0, 0.0);
 		}
 	} else {
-		for (i = 0; i < priv->hunks->len; ++i) {
+		for (i = 0; (guint) i < priv->hunks->len; ++i) {
 			hunk = diff_view_get_hunk (priv, i);
 			file = diff_view_get_file (priv, hunk->file);
 
diff --git a/src/giggle-graph-renderer.c b/src/giggle-graph-renderer.c
index 07a8bdd..d5a4dd2 100644
--- a/src/giggle-graph-renderer.c
+++ b/src/giggle-graph-renderer.c
@@ -280,7 +280,8 @@ giggle_graph_renderer_render (GtkCellRenderer      *cell,
 	gint                          x, y, h;
 	gint                          cur_pos, pos;
 	GList                        *children;
-	gint                          size, i;
+	gint                          size;
+	guint                         i;
 
 	priv = GIGGLE_GRAPH_RENDERER (cell)->_priv;
 
@@ -450,7 +451,8 @@ giggle_graph_renderer_calculate_revision_state (GiggleGraphRenderer *renderer,
 	GList                        *children;
 	gboolean                      current_path_reused = FALSE;
 	gboolean                      update_color;
-	gint                          n_path, i;
+	gint                          n_path;
+	guint                         i;
 
 	priv = renderer->_priv;
 	children = giggle_revision_get_children (revision);



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