]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 Sep 2023 05:12:29 +0000 (08:12 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 05:12:29 +0000 (08:12 +0300)
Modules/_testcapi/util.h

index 4cf7e226382bfcf30a0d416e57bb4a29c4f43abb..f26d7656a10138fb71928efff83d6dea4a692a9e 100644 (file)
@@ -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. */