On Wed, 21 Oct 2015 19:47:02 +0200 Vadim Zeitlin <vz-mahog...@zeitlins.org> wrote:
VZ> The trouble is that it's probably not difficult, I just still didn't have VZ> time to even look at it yet :-( I'll really, really try to look at it soon. VZ> VZ> NB> Or better yet how to hide all warnings from libpng in wx/M? I would use VZ> NB> the local patch for now. VZ> VZ> I'd rather avoid patching wx, but you can, of course, just remove VZ> wxLogWarning in wx_PNG_warning() in src/common/imagpng.cpp to hide all VZ> PNG warnings for now. I started to get a new warning recently - "GIF: data stream seems to be truncated". For now I am using this patch: diff --git a/src/common/image.cpp b/src/common/image.cpp index b0ca1d8..4eb9e6b 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -2786,7 +2786,9 @@ bool wxImage::LoadFile( wxInputStream& stream, wxBitmapType type, int index ) return true; } +#if 0 wxLogWarning( _("Unknown image data format.") ); +#endif return false; } diff --git a/src/common/imaggif.cpp b/src/common/imaggif.cpp index c75775f..d16f847 100644 --- a/src/common/imaggif.cpp +++ b/src/common/imaggif.cpp @@ -134,8 +134,10 @@ bool wxGIFHandler::LoadFile(wxImage *image, wxInputStream& stream, return false; case wxGIF_TRUNCATED: +#if 0 if ( verbose ) wxLogError(_("GIF: data stream seems to be truncated.")); +#endif // go on; image data is OK break; diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index 11b63b5..2a782f2 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -120,10 +120,12 @@ static void PNGLINKAGEMODE wx_PNG_warning(png_structp png_ptr, png_const_charp message) { wxPNGInfoStruct *info = png_ptr ? WX_PNG_INFO(png_ptr) : NULL; +#if 0 if ( !info || info->verbose ) { wxLogWarning( wxString::FromAscii(message) ); } +#endif } // from pngerror.c I see there is 'verbose' variable. Could we probably pass false for it? Regards, Nerijus ------------------------------------------------------------------------------ _______________________________________________ Mahogany-Developers mailing list Mahogany-Developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mahogany-developers