]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)
authorBenjamin Peterson <benjamin@python.org>
Wed, 15 Jul 2020 17:02:14 +0000 (10:02 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 17:02:14 +0000 (12:02 -0500)
Modules/_zoneinfo.c

index a2883495fe7fdddd7bd435e65f295202417ab73e..319d6c7b7760e2e52f244db9c7cfa1de1d584711 100644 (file)
@@ -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) {