[gtk+] gtkthemingengine: Eliminate a dead assignment
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkthemingengine: Eliminate a dead assignment
- Date: Mon, 2 Dec 2013 10:36:57 +0000 (UTC)
commit 1adf0becc2c1fd64fdf6f197f0c4733c20bb232a
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Nov 20 17:36:16 2013 +0000
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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 775fd6b..b38059b 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]