From: hj kim Date: Thu, 26 Dec 2019 05:41:30 +0000 (+0900) Subject: Fix build error for toolchin upgrade (GCC6->GCC9) X-Git-Tag: submit/tizen/20191226.093041^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=829922394cf80aaa2094e81b64f2590be9dffcf6;p=platform%2Fcore%2Fapi%2Fimage-util.git Fix build error for toolchin upgrade (GCC6->GCC9) Change-Id: I8befef928e9b4e9dcb3af1615e76522ac15d2e0e --- diff --git a/packaging/capi-media-image-util.spec b/packaging/capi-media-image-util.spec index 5ec5442..9b8bd94 100755 --- a/packaging/capi-media-image-util.spec +++ b/packaging/capi-media-image-util.spec @@ -1,6 +1,6 @@ Name: capi-media-image-util Summary: A Image Utility library in Tizen Native API -Version: 0.2.3 +Version: 0.2.4 Release: 2 Group: Multimedia/API License: Apache-2.0 diff --git a/test/image_util_testsuite.c b/test/image_util_testsuite.c index be4800a..d684647 100644 --- a/test/image_util_testsuite.c +++ b/test/image_util_testsuite.c @@ -538,7 +538,7 @@ static gboolean __read_file(char *path, void **data, size_t *length) long len = 0; if (!path || !data || length == 0) { - g_print("\t[__read_file] invalid data %s %p %p\n", path, data, length); + g_print("\t[__read_file] invalid data\n"); return FALSE; } @@ -596,7 +596,7 @@ static gboolean __write_file(const char *path, void *data, size_t length) size_t len = 0; if (!path || !data || length == 0) { - g_print("\t[__write_file] invalid data %s %p %zu\n", path, data, length); + g_print("\t[__write_file] invalid data\n"); return FALSE; } @@ -2446,15 +2446,15 @@ static void _destroy_data(void) /* * This function gets input */ -static gboolean _input_func(GIOChannel *channel) +static gboolean _input_func(GIOChannel *channel, GIOCondition condition, gpointer data) { gchar buf[MAX_STRING_LEN]; gsize read = 0; - guint condition = 0; + GIOStatus status = 0; GError *error = NULL; - condition = g_io_channel_read_chars(channel, buf, MAX_STRING_LEN, &read, &error); - if (!condition) { + status = g_io_channel_read_chars(channel, buf, MAX_STRING_LEN, &read, &error); + if (!status) { g_print("g_io_channel_read_chars failed : %s", error ? error->message : "none"); if (error) g_error_free(error); return TRUE;