Revision: 1186
http://www.exim.org/viewvc/pcre2?view=rev&revision=1186
Author: ph10
Date: 2019-11-17 17:38:53 +0000 (Sun, 17 Nov 2019)
Log Message:
-----------
Update comment about %lu warnings.
Modified Paths:
--------------
code/trunk/src/pcre2test.c
Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c 2019-11-16 17:30:07 UTC (rev 1185)
+++ code/trunk/src/pcre2test.c 2019-11-17 17:38:53 UTC (rev 1186)
@@ -170,7 +170,9 @@
#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"