diff options
author | Benjamin Peterson <benjamin@python.org> | 2020-07-15 17:02:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 17:02:14 (GMT) |
commit | 0108b2a2401d0ffffe7c07e5ab69a3b0c7593070 (patch) | |
tree | f766b0b94b25e38a2386d608f49615902991377d /Modules/_zoneinfo.c | |
parent | ea62a4bd54421693ed6b24a1bbd18ebed3bdb8f8 (diff) | |
download | cpython-0108b2a2401d0ffffe7c07e5ab69a3b0c7593070.zip cpython-0108b2a2401d0ffffe7c07e5ab69a3b0c7593070.tar.gz cpython-0108b2a2401d0ffffe7c07e5ab69a3b0c7593070.tar.bz2 |
Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)
Diffstat (limited to 'Modules/_zoneinfo.c')
-rw-r--r-- | Modules/_zoneinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index a288349..319d6c7 100644 --- a/Modules/_zoneinfo.c +++ b/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) { |