summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-hsv.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-11 21:57:03 +0100
committerVictor Kareh <[email protected]>2019-03-15 13:05:12 -0400
commit08dc989b39451d49c0b2c01577c036d9f11d5141 (patch)
treede767ea951537785a199edc73984be85f4e45d42 /libmate-desktop/mate-hsv.c
parent3f044b1462b3204e636bee06275c11610f21617a (diff)
downloadmate-desktop-08dc989b39451d49c0b2c01577c036d9f11d5141.tar.bz2
mate-desktop-08dc989b39451d49c0b2c01577c036d9f11d5141.tar.xz
mate-hsv: avoid duplicate initialization in variable
avoid Clang static analyzer warning: mate-hsv.c:913:19: warning: Value stored to 'priv' during its initialization is never read MateHSVPrivate *priv = hsv->priv; ^~~~ ~~~~~~~~~
Diffstat (limited to 'libmate-desktop/mate-hsv.c')
-rw-r--r--libmate-desktop/mate-hsv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libmate-desktop/mate-hsv.c b/libmate-desktop/mate-hsv.c
index 67b49c7..1d17342 100644
--- a/libmate-desktop/mate-hsv.c
+++ b/libmate-desktop/mate-hsv.c
@@ -928,7 +928,6 @@ paint_triangle (MateHSV *hsv,
int width, height;
GtkStyleContext *context;
- priv = hsv->priv;
width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_height (widget);
/* Compute triangle's vertices */