From 1adf0becc2c1fd64fdf6f197f0c4733c20bb232a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 20 Nov 2013 17:36:16 +0000 Subject: [PATCH] gtkthemingengine: Eliminate a dead assignment This is technically a dead assignment, but is nice to retain for clarity. Moving it to the variable definition shuts scan-build up. https://bugzilla.gnome.org/show_bug.cgi?id=712760 --- gtk/gtkthemingengine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 775fd6ba20..b38059bab0 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -2058,10 +2058,9 @@ gtk_theming_engine_render_frame_gap (GtkThemingEngine *engine, GtkStateFlags state; gint border_width; GtkCssValue *corner[4]; - gdouble x0, y0, x1, y1, xc, yc, wc, hc; + gdouble x0, y0, x1, y1, xc = 0.0, yc = 0.0, wc = 0.0, hc = 0.0; GtkBorder border; - xc = yc = wc = hc = 0; state = gtk_theming_engine_get_state (engine); junction = gtk_theming_engine_get_junction_sides (engine);