[gtksourceview] Fix warnings spotted by gcc 4.6
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fix warnings spotted by gcc 4.6
- Date: Mon, 21 Feb 2011 11:07:14 +0000 (UTC)
commit 74552cb5398d1c583adc2f4c71c2de04c964c0ca
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Feb 21 12:07:01 2011 +0100
Fix warnings spotted by gcc 4.6
.../words/gtksourcecompletionwordsbuffer.c | 5 -----
gtksourceview/gtksourcegutter.c | 3 +--
2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index f654439..cee6986 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -523,11 +523,6 @@ add_scan_region (GtkSourceCompletionWordsBuffer *buffer,
next,
region);
}
- else
- {
- GList *ignore;
- ignore = g_list_append (next, region);
- }
/* Add the initate scan timeout if it's not already running */
install_initiate_scan (buffer);
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index 873dd1f..79d398b 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -923,7 +923,6 @@ on_view_draw (GtkSourceView *view,
GtkTextView *text_view;
GArray *sizes;
GdkRectangle clip;
- gint size;
gint x, y;
gint y1, y2;
GArray *numbers;
@@ -991,7 +990,7 @@ on_view_draw (GtkSourceView *view,
heights = g_array_new (FALSE, FALSE, sizeof (gint));
sizes = g_array_new (FALSE, FALSE, sizeof (gint));
- size = calculate_gutter_size (gutter, sizes);
+ calculate_gutter_size (gutter, sizes);
i = 0;
x = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]