Skip to content
Permalink
Browse files

Silence "libpng warning: iCCP: known incorrect sRGB profile" warnings

These are thrown by 3rd party components (e.g. webkit) which we have no
control over, and have low value anyway

Better to keep the debug log cleaner so that real errors are noticed
  • Loading branch information
nyalldawson committed Oct 7, 2018
1 parent 80e19b6 commit 7c21bfd199fcae8c81982526bf551ee1d7fa1b26
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/main.cpp
@@ -370,6 +370,12 @@ void myMessageOutput( QtMsgType type, const char *msg )
myPrint( "Critical: %s\n", msg );
break;
case QtWarningMsg:
{
// Ignore libpng iCPP known incorrect SRGB profile errors
// (which are thrown by 3rd party components we have no control over and have low value anyway).
if ( strncmp( msg, "libpng warning: iCCP: known incorrect sRGB profile", 50 ) == 0 )
break;

myPrint( "Warning: %s\n", msg );

#ifdef QGISDEBUG
@@ -391,6 +397,8 @@ void myMessageOutput( QtMsgType type, const char *msg )
}

break;
}

case QtFatalMsg:
{
myPrint( "Fatal: %s\n", msg );

0 comments on commit 7c21bfd

Please sign in to comment.
You can’t perform that action at this time.