[gnome-builder] gstyle: fix uninitialised vars in tests
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gstyle: fix uninitialised vars in tests
- Date: Sun, 15 Jan 2017 13:43:47 +0000 (UTC)
commit 4634e95d751342fe9b3b9121984c7f5d112a83ac
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Jan 15 14:35:25 2017 +0100
gstyle: fix uninitialised vars in tests
contrib/gstyle/tests/test-gstyle-color.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/contrib/gstyle/tests/test-gstyle-color.c b/contrib/gstyle/tests/test-gstyle-color.c
index 344d5eb..de01326 100644
--- a/contrib/gstyle/tests/test-gstyle-color.c
+++ b/contrib/gstyle/tests/test-gstyle-color.c
@@ -100,11 +100,15 @@ test_deltae (void)
static void
delta_rgb ()
{
- GdkRGBA src_rgba,dst_rgba;
+ GdkRGBA src_rgba = {0.0, 0.0, 0.0, 0.0};
+ GdkRGBA dst_rgba = {0.0, 0.0, 0.0, 0.0};
GdkRGBA max_src_r_rgba, max_src_g_rgba, max_src_b_rgba;
GdkRGBA max_dst_r_rgba;
G_GNUC_UNUSED GdkRGBA max_dst_g_rgba, max_dst_b_rgba ;
- GstyleXYZ xyz, max_r_xyz, max_g_xyz, max_b_xyz;
+ GstyleXYZ xyz;
+ GstyleXYZ max_r_xyz = {0.0, 0.0, 0.0, 0.0};
+ GstyleXYZ max_g_xyz = {0.0, 0.0, 0.0, 0.0};
+ GstyleXYZ max_b_xyz = {0.0, 0.0, 0.0, 0.0};
gdouble r, g, b;
GdkRGBA delta_rgba;
gdouble dr_max = 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]