Skip to content

Commit

Permalink
pythongh-109469: Silence compiler warnings on string comparisons in _…
Browse files Browse the repository at this point in the history
…testcapi (pythonGH-109533)
  • Loading branch information
serhiy-storchaka authored Sep 19, 2023
1 parent beb5ec5 commit ed582a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/_testcapi/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit ed582a2

Please sign in to comment.