gifsicle/no_status-1_when_valid_output.patch

22 lines
696 B
Diff

diff --git a/src/support.c b/src/support.c
index 2094b0a..fe247a8 100644
--- a/src/support.c
+++ b/src/support.c
@@ -1109,14 +1109,14 @@ find_color_or_error(Gif_Color *color, Gif_Stream *gfs, Gif_Image *gfi,
return color->pixel;
else {
if (color_context)
- lerror(gfs->landmark, "%s color out of range", color_context);
+ lwarning(gfs->landmark, "%s color out of range", color_context);
return -1;
}
}
index = Gif_FindColor(gfcm, color);
if (index < 0 && color_context)
- lerror(gfs->landmark, "%s color not in colormap", color_context);
+ lwarning(gfs->landmark, "%s color not in colormap", color_context);
return index;
}