From b9ca2b5d197a2810e06da4039898421784f72fc0 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Thu, 7 May 1998 22:57:41 +0200 Subject: [PATCH] warning fix Rev: src/modules/Image/encodings/png.c:1.16 --- src/modules/Image/encodings/png.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/Image/encodings/png.c b/src/modules/Image/encodings/png.c index 51ecebc7f5..333bee3128 100644 --- a/src/modules/Image/encodings/png.c +++ b/src/modules/Image/encodings/png.c @@ -1,5 +1,5 @@ #include "global.h" -RCSID("$Id: png.c,v 1.15 1998/05/02 01:24:26 mirar Exp $"); +RCSID("$Id: png.c,v 1.16 1998/05/07 20:57:41 mirar Exp $"); #include "config.h" @@ -517,7 +517,7 @@ static int _png_write_rgb(rgb_group *w1, struct neo_colortable *ct, struct pike_string *trns) { - /* returns 1 if interlace, 0 if not */ + /* returns 1 if alpha channel, 0 if not */ /* w1, wa1 will be freed upon error */ static rgb_group white={255,255,255}; @@ -936,6 +936,8 @@ static int _png_write_rgb(rgb_group *w1, error("Image.PNG->_decode: Unknown color type %d (bit depth %d).\n", type,bpp); } + error("Image.PNG->_decode: illegal state\n"); + return 0; /* stupid */ } struct png_interlace -- GitLab