mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)
This commit is contained in:
parent
ea62a4bd54
commit
0108b2a240
1 changed files with 2 additions and 2 deletions
|
|
@ -2468,7 +2468,7 @@ clear_strong_cache(const PyTypeObject *const type)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
new_weak_cache()
|
new_weak_cache(void)
|
||||||
{
|
{
|
||||||
PyObject *weakref_module = PyImport_ImportModule("weakref");
|
PyObject *weakref_module = PyImport_ImportModule("weakref");
|
||||||
if (weakref_module == NULL) {
|
if (weakref_module == NULL) {
|
||||||
|
|
@ -2482,7 +2482,7 @@ new_weak_cache()
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
initialize_caches()
|
initialize_caches(void)
|
||||||
{
|
{
|
||||||
// TODO: Move to a PyModule_GetState / PEP 573 based caching system.
|
// TODO: Move to a PyModule_GetState / PEP 573 based caching system.
|
||||||
if (TIMEDELTA_CACHE == NULL) {
|
if (TIMEDELTA_CACHE == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue