Skip to content

Commit ed582a2

Browse files
gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533)
1 parent beb5ec5 commit ed582a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_testcapi/util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
} while (0)
2626

2727
/* Marker to check that pointer value was set. */
28-
#define UNINITIALIZED_PTR ((void *)"uninitialized")
28+
static const char uninitialized[] = "uninitialized";
29+
#define UNINITIALIZED_PTR ((void *)uninitialized)
2930
/* Marker to check that Py_ssize_t value was set. */
3031
#define UNINITIALIZED_SIZE ((Py_ssize_t)236892191)
3132
/* Marker to check that integer value was set. */

0 commit comments

Comments
 (0)