From: Benjamin Peterson Date: Wed, 15 Jul 2020 17:02:14 +0000 (-0700) Subject: Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478) X-Git-Tag: v3.10.0a1~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0108b2a2401d0ffffe7c07e5ab69a3b0c7593070;p=thirdparty%2FPython%2Fcpython.git Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478) --- diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index a2883495fe7f..319d6c7b7760 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) {