diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2021-05-26 14:49:07 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-05-26 14:52:26 +0100 |
commit | 0192989aef0322a102e5b8b1ddaf7c5db14e3bd6 (patch) | |
tree | 19b198e5e407feaa15502309d096319bc8018862 | |
parent | 09c75da23f2e08ec6d6dcea4cb03f8b0b36c569b (diff) | |
download | ghostpdl-0192989aef0322a102e5b8b1ddaf7c5db14e3bd6.tar.gz |
Discard openjpeg warnings in non-debug builds
As we do for the "info" callback. But continue to print errors
-rw-r--r-- | base/sjpx_openjpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/sjpx_openjpeg.c b/base/sjpx_openjpeg.c index bac505dd4..8276cedd7 100644 --- a/base/sjpx_openjpeg.c +++ b/base/sjpx_openjpeg.c @@ -236,7 +236,10 @@ static void sjpx_info_callback(const char *msg, void *ptr) static void sjpx_warning_callback(const char *msg, void *ptr) { +#ifdef DEBUG + /* prevent too many messages during normal build */ dlprintf1("openjpeg warning: %s", msg); +#endif } /* initialize the stream */ |