summaryrefslogtreecommitdiff
path: root/pngset.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-03-18 22:39:52 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-03-19 10:54:55 -0500
commitce9d8a3f48da97fc1d71713c7238778ff16a8fdb (patch)
tree06ef70f1b38d856d58ad841597cfc066dd9012f8 /pngset.c
parenteda53e577093f367877daef154cf83533da390d0 (diff)
downloadlibpng-ce9d8a3f48da97fc1d71713c7238778ff16a8fdb.tar.gz
[libpng16] Imported from libpng-1.6.0beta19.tarv1.6.0beta19
Diffstat (limited to 'pngset.c')
-rw-r--r--pngset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pngset.c b/pngset.c
index bde866f89..c8df0dc09 100644
--- a/pngset.c
+++ b/pngset.c
@@ -1335,10 +1335,12 @@ png_set_benign_errors(png_structrp png_ptr, int allowed)
*/
if (allowed)
- png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN;
+ png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN |
+ PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN;
else
- png_ptr->flags &= ~PNG_FLAG_BENIGN_ERRORS_WARN;
+ png_ptr->flags &= ~(PNG_FLAG_BENIGN_ERRORS_WARN |
+ PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN);
}
#endif /* PNG_BENIGN_ERRORS_SUPPORTED */