From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:59:43 +0000 (-0700) Subject: [3.12] gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH... X-Git-Tag: v3.12.1~454 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddc0adcdb3ac0fbd14367876304ae61f68cb1813;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) (#109558) gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) (cherry picked from commit ed582a2ed980efba2d0da365ae37bff4a2b99873) Co-authored-by: Serhiy Storchaka --- 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. */