summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.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/gtkstylecontext.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/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 896a98ad1b..c61964f243 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -941,11 +941,9 @@ gtk_style_context_impl_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GtkStyleContextPrivate *priv;
GtkStyleContext *style_context;
style_context = GTK_STYLE_CONTEXT (object);
- priv = style_context->priv;
switch (prop_id)
{
@@ -969,8 +967,8 @@ gtk_style_context_impl_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GtkStyleContextPrivate *priv;
GtkStyleContext *style_context;
+ GtkStyleContextPrivate *priv;
style_context = GTK_STYLE_CONTEXT (object);
priv = style_context->priv;
@@ -2970,7 +2968,7 @@ gtk_style_context_cancel_animations (GtkStyleContext *context,
{
GtkStyleContextPrivate *priv;
AnimationInfo *info;
- GSList *l, *node;
+ GSList *l;
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
@@ -2980,7 +2978,6 @@ gtk_style_context_cancel_animations (GtkStyleContext *context,
while (l)
{
info = l->data;
- node = l;
l = l->next;
if (!region_id ||