From 26fc86315574abea47985ce4268379d2f2773fe4 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Sun, 17 Nov 2019 17:38:53 +0000 Subject: [PATCH] Update comment about %lu warnings. --- src/pcre2test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pcre2test.c b/src/pcre2test.c index 8d4dc68..cdf88c1 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -170,7 +170,9 @@ commented out the original, but kept it around just in case. */ #endif /* VC and older compilers don't support %td or %zu, and even some that claim to -be C99 don't support it (hence DISABLE_PERCENT_ZT). */ +be C99 don't support it (hence DISABLE_PERCENT_ZT). There are some non-C99 +environments where %lu gives a warning with 32-bit pointers. As there doesn't +seem to be an easy way round this, just live with it (the cases are rare). */ #if defined(_MSC_VER) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L || defined(DISABLE_PERCENT_ZT) #define PTR_FORM "lu"