--- libpng-1.6.29.old/png.c +++ libpng-1.6.29/png.c @@ -2354,8 +2354,10 @@ * discourage their use, skip the 'have_md5' warning below, * which is made irrelevant by this error. */ +#ifdef NOTDEF png_chunk_report(png_ptr, "known incorrect sRGB profile", PNG_CHUNK_ERROR); +#endif } /* Warn that this being done; this isn't even an error since