Skip to content

Commit 9de0509

Browse files
authored
libpng: Do not show warnings in the browser console (#19633)
Such warnings can include things like: libpng warning: iCCP: known incorrect sRGB profile
1 parent 07053fb commit 9de0509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ports/libpng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def show():
341341
#define PNG_USER_MEM_SUPPORTED
342342
#define PNG_USER_TRANSFORM_INFO_SUPPORTED
343343
#define PNG_USER_TRANSFORM_PTR_SUPPORTED
344-
#define PNG_WARNINGS_SUPPORTED
344+
#undef PNG_WARNINGS_SUPPORTED
345345
#define PNG_WRITE_16BIT_SUPPORTED
346346
#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
347347
#define PNG_WRITE_BGR_SUPPORTED

0 commit comments

Comments
 (0)