From 441a2ac6028aca34f1921b2f4cc469124c9235c7 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 26 May 2022 08:47:51 -0700 Subject: [PATCH] Have build test report library version if it doesn't match zlib.h. --- test/example.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/example.c b/test/example.c index 949f4f6..1470bc8 100644 --- a/test/example.c +++ b/test/example.c @@ -555,7 +555,8 @@ int main(argc, argv) exit(1); } else if (strcmp(zlibVersion(), ZLIB_VERSION) != 0) { - fprintf(stderr, "warning: different zlib version\n"); + fprintf(stderr, "warning: different zlib version linked: %s\n", + zlibVersion()); } printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n",