From b0add1200ab5e61c88a5eb158c92faebef7debfd Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 11 Feb 2016 10:26:28 +0100 Subject: GTK+3 fish: fix a Wunused-but-set-variable build warning --- applets/fish/fish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applets/fish') diff --git a/applets/fish/fish.c b/applets/fish/fish.c index fc729e9a..35531b73 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -1481,8 +1481,8 @@ static gboolean fish_applet_draw(GtkWidget* widget, cairo_t *cr, FishApplet* fis static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* event, FishApplet* fish) #endif { - GdkWindow *window; #if !GTK_CHECK_VERSION (3, 0, 0) + GdkWindow *window; GtkStyle *style; GtkStateType state; #endif @@ -1497,8 +1497,8 @@ static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* even g_assert (fish->n_frames > 0); - window = gtk_widget_get_window (widget); #if !GTK_CHECK_VERSION (3, 0, 0) + window = gtk_widget_get_window (widget); style = gtk_widget_get_style (widget); state = gtk_widget_get_state (widget); #endif -- cgit v1.2.1