summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2020-05-20 11:20:45 +0200
committerMarti Maria <marti.maria@littlecms.com>2020-05-20 11:20:45 +0200
commit0a00fe054aed70cd4c453a2109ed14ca099ef8fb (patch)
treeecea2244f84d237329a0d8ff6d772a82e5a664c8
parentcceb97a424e8509a57761736e09640e333bac815 (diff)
downloadlcms2-0a00fe054aed70cd4c453a2109ed14ca099ef8fb.tar.gz
Minor fixes
Fix an historical bug, which is harmless Remove a warning in testbed
-rw-r--r--configure.ac4
-rw-r--r--testbed/testcms2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 5ec64d9..f706e44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -273,8 +273,8 @@ AC_SUBST(LIB_JPEG)
# Check for ZLIB
#
have_zlib='no'
-dnl PNG requires zlib so enable zlib check if PNG is requested
-if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
+dnl TIFF may require zlib so enable zlib check if TIFF is requested
+if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
then
LIB_ZLIB=''
AC_MSG_CHECKING(for ZLIB support )
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 1790276..a3588dd 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -95,7 +95,7 @@ cmsContext DbgThread(void)
{
static cmsUInt32Number n = 1;
- return (cmsContext) (void*)(n++ % 0xff0);
+ return (cmsContext) (void*) ((cmsUInt8Number*) NULL + (n++ % 0xff0));
}
// The allocate routine