[gnome-color-manager] trivial: Fix up two compile warnings in the self tests
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: Fix up two compile warnings in the self tests
- Date: Thu, 3 Apr 2014 17:00:09 +0000 (UTC)
commit 865a5aab6748209a272349eeb4f9f5d0718f091e
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 3 18:59:41 2014 +0200
trivial: Fix up two compile warnings in the self tests
src/gcm-self-test.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-self-test.c b/src/gcm-self-test.c
index 53fdf5f..dbf12a8 100644
--- a/src/gcm-self-test.c
+++ b/src/gcm-self-test.c
@@ -110,6 +110,7 @@ gcm_test_cie_widget_func (void)
CdColorXYZ *red;
CdColorXYZ *green;
CdColorXYZ *blue;
+ gboolean ret;
gint response;
GFile *file = NULL;
CdColorYxy white_Yxy;
@@ -122,7 +123,8 @@ gcm_test_cie_widget_func (void)
profile = cd_icc_new ();
file = g_file_new_for_path (TESTDATADIR "/bluish.icc");
- cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
+ ret = cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
+ g_assert (ret);
g_object_get (profile,
"white", &white,
"red", &red,
@@ -294,6 +296,7 @@ gcm_test_trc_widget_func (void)
GtkWidget *vbox;
GPtrArray *clut;
CdIcc *profile;
+ gboolean ret;
gint response;
GFile *file;
@@ -302,7 +305,8 @@ gcm_test_trc_widget_func (void)
profile = cd_icc_new ();
file = g_file_new_for_path (TESTDATADIR "/AdobeGammaTest.icm");
- cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
+ ret = cd_icc_load_file (profile, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
+ g_assert (ret);
clut = cd_icc_get_vcgt (profile, 256, NULL);
g_object_set (widget,
"data", clut,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]