[gnome-color-manager/gnome-3-12] trivial: Fix up two compile warnings in the self tests



commit 74679dd39f18708f6e5ca5af914668c037457135
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 8c9a3a7..07b4fe6 100644
--- a/src/gcm-self-test.c
+++ b/src/gcm-self-test.c
@@ -175,6 +175,7 @@ gcm_test_cie_widget_func (void)
        CdColorXYZ *red;
        CdColorXYZ *green;
        CdColorXYZ *blue;
+       gboolean ret;
        gint response;
        GFile *file = NULL;
        CdColorYxy white_Yxy;
@@ -187,7 +188,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,
@@ -359,6 +361,7 @@ gcm_test_trc_widget_func (void)
        GtkWidget *vbox;
        GPtrArray *clut;
        CdIcc *profile;
+       gboolean ret;
        gint response;
        GFile *file;
 
@@ -367,7 +370,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]