summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapi
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 14:59:43 (GMT)
committerGitHub <noreply@github.com>2023-10-02 14:59:43 (GMT)
commitddc0adcdb3ac0fbd14367876304ae61f68cb1813 (patch)
treeefdf261af783ed5608be1c975813fa592ee21268 /Modules/_testcapi
parentacb675323341c9105feacba8105fc9a4cb68eb45 (diff)
downloadcpython-ddc0adcdb3ac0fbd14367876304ae61f68cb1813.zip
cpython-ddc0adcdb3ac0fbd14367876304ae61f68cb1813.tar.gz
cpython-ddc0adcdb3ac0fbd14367876304ae61f68cb1813.tar.bz2
[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 <storchaka@gmail.com>
Diffstat (limited to 'Modules/_testcapi')
-rw-r--r--Modules/_testcapi/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_testcapi/util.h b/Modules/_testcapi/util.h
index 4cf7e22..f26d765 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. */