From 1e0856aa207fe5dac52c89df11df4629309add9c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 19 Sep 2023 08:12:29 +0300 Subject: [PATCH] gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) --- Modules/_testcapi/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_testcapi/util.h b/Modules/_testcapi/util.h index 4cf7e226382bfcf..f26d7656a10138f 100644 --- a/Modules/_testcapi/util.h +++ b/Modules/_testcapi/util.h @@ -25,7 +25,8 @@ } while (0) /* Marker to check that pointer value was set. */ -#define UNINITIALIZED_PTR ((void *)"uninitialized") +static const char uninitialized[] = "uninitialized"; +#define UNINITIALIZED_PTR ((void *)uninitialized) /* Marker to check that Py_ssize_t value was set. */ #define UNINITIALIZED_SIZE ((Py_ssize_t)236892191) /* Marker to check that integer value was set. */