Browse Source

Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)

pull/21491/head
Benjamin Peterson 6 years ago
committed by GitHub
parent
commit
0108b2a240
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Modules/_zoneinfo.c

4
Modules/_zoneinfo.c

@ -2468,7 +2468,7 @@ clear_strong_cache(const PyTypeObject *const type)
}
static PyObject *
new_weak_cache()
new_weak_cache(void)
{
PyObject *weakref_module = PyImport_ImportModule("weakref");
if (weakref_module == NULL) {
@ -2482,7 +2482,7 @@ new_weak_cache()
}
static int
initialize_caches()
initialize_caches(void)
{
// TODO: Move to a PyModule_GetState / PEP 573 based caching system.
if (TIMEDELTA_CACHE == NULL) {

Loading…
Cancel
Save