Commit e7dc21d7 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: fix return values in g_return_val_if_fail() statements

GLib master fixed the missing warnings since whatever GCC version.
parent 6fe0a42c
......@@ -645,7 +645,7 @@ gimp_drawable_preview_new_from_drawable_id (gint32 drawable_ID)
gint32
gimp_drawable_preview_get_drawable_id (GimpDrawablePreview *preview)
{
g_return_val_if_fail (GIMP_IS_DRAWABLE_PREVIEW (preview), NULL);
g_return_val_if_fail (GIMP_IS_DRAWABLE_PREVIEW (preview), -1);
return GIMP_DRAWABLE_PREVIEW_GET_PRIVATE (preview)->drawable_ID;
}
......
......@@ -79,7 +79,7 @@ gimp_image_set_color_profile (gint32 image_ID,
gint length = 0;
g_return_val_if_fail (profile == NULL || GIMP_IS_COLOR_PROFILE (profile),
NULL);
FALSE);
if (profile)
{
......@@ -158,7 +158,7 @@ gimp_image_convert_color_profile (gint32 image_ID,
gint length = 0;
g_return_val_if_fail (profile == NULL || GIMP_IS_COLOR_PROFILE (profile),
NULL);
FALSE);
if (profile)
{
......
......@@ -883,7 +883,7 @@ gimp_zoom_preview_new_with_model (GimpDrawable *drawable,
gint32
gimp_zoom_preview_get_drawable_id (GimpZoomPreview *preview)
{
g_return_val_if_fail (GIMP_IS_ZOOM_PREVIEW (preview), NULL);
g_return_val_if_fail (GIMP_IS_ZOOM_PREVIEW (preview), -1);
return GIMP_ZOOM_PREVIEW_GET_PRIVATE (preview)->drawable_ID;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment