From: Laurent Monin Date: Thu, 30 Aug 2012 20:16:43 +0000 (+0200) Subject: Silent 2 warnings using explicit type casting. X-Git-Tag: v1.2~16 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=7628d75a4b525cc77c827f2f9eca2e66c9bf0a5d Silent 2 warnings using explicit type casting. --- diff --git a/src/color-man.c b/src/color-man.c index 6c88a8f7..7788c7a9 100644 --- a/src/color-man.c +++ b/src/color-man.c @@ -435,7 +435,7 @@ static gchar *color_man_get_profile_name(ColorManProfileType type, cmsHPROFILE p cmsUInt8Number profileID[17]; profileID[16] = '\0'; cmsGetHeaderProfileID(profile, profileID); - return g_strdup(profileID); + return g_strdup((gchar *) profileID); #else return g_strdup(cmsTakeProductName(profile)); #endif diff --git a/src/exif-common.c b/src/exif-common.c index 43498f99..12956dea 100644 --- a/src/exif-common.c +++ b/src/exif-common.c @@ -458,9 +458,9 @@ static gchar *exif_build_formatted_ColorProfile(ExifData *exif) #ifdef HAVE_LCMS2 profileID[16] = '\0'; cmsGetHeaderProfileID(profile, profileID); - name = profileID; + name = (gchar *) profileID; #else - name = cmsTakeProductName(profile); + name = (gchar *) cmsTakeProductName(profile); #endif cmsCloseProfile(profile); }