summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareaboxcontext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-01-23 21:50:39 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-01-23 21:51:38 -0500
commitd9fcc4c630f3668dd014c258c2deb22d61e438d0 (patch)
tree8b08e3e470f98aaa23173d19a6ab99fc4d12691d /gtk/gtkcellareaboxcontext.c
parent94c4a312c1eceb352dea1895f868f9943735e1aa (diff)
downloadgtk+-d9fcc4c630f3668dd014c258c2deb22d61e438d0.tar.gz
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
Diffstat (limited to 'gtk/gtkcellareaboxcontext.c')
-rw-r--r--gtk/gtkcellareaboxcontext.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkcellareaboxcontext.c b/gtk/gtkcellareaboxcontext.c
index 57793c7242..de1b31087d 100644
--- a/gtk/gtkcellareaboxcontext.c
+++ b/gtk/gtkcellareaboxcontext.c
@@ -744,14 +744,12 @@ allocate_for_orientation (GtkCellAreaBoxContext *context,
GtkCellAreaBoxContextPrivate *priv = context->priv;
GtkCellAreaBoxAllocation *allocs;
GtkRequestedSize *sizes;
- GArray *array;
gint n_expand_groups = 0;
gint i, n_groups, position, vis_position;
gint extra_size, extra_extra;
gint avail_size = size;
sizes = _gtk_cell_area_box_context_get_requests (context, area, orientation, for_size, &n_groups);
- array = get_array (context, orientation, for_size);
n_expand_groups = count_expand_groups (context);
/* First start by naturally allocating space among groups */