// from pngerror.c
// so that the libpng doesn't send anything on stderr
void
-PNGLINKAGEMODE wx_png_error(png_structp png_ptr, png_const_charp message)
+PNGLINKAGEMODE wx_png_error(png_structp WXUNUSED(png_ptr), png_const_charp message)
{
wxLogFatalError( wxString::FromAscii(message) );
}
if (!png_ptr)
goto error;
- png_set_error_fn(png_ptr, (png_voidp)NULL, wx_png_error, wx_png_warning);
-
// NB: please see the comment near wxPNGInfoStruct declaration for
// explanation why this line is mandatory
png_set_read_fn( png_ptr, &wxinfo, wx_PNG_stream_reader);
return false;
}
- png_set_error_fn(png_ptr, (png_voidp)NULL, wx_png_error, wx_png_warning);
-
png_infop info_ptr = png_create_info_struct(png_ptr);
if (info_ptr == NULL)
{