From: Serhiy Storchaka Date: Tue, 19 Sep 2023 05:12:29 +0000 (+0300) Subject: gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) X-Git-Tag: v3.13.0a1~397 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed582a2ed980efba2d0da365ae37bff4a2b99873;p=thirdparty%2FPython%2Fcpython.git gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) --- diff --git a/Modules/_testcapi/util.h b/Modules/_testcapi/util.h index 4cf7e226382b..f26d7656a101 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. */