Skip to content

Commit 0108b2a

Browse files
authored
Fix -Wstring-prototypes warnings in _zoneinfo.c. (GH-21478)
1 parent ea62a4b commit 0108b2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_zoneinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ clear_strong_cache(const PyTypeObject *const type)
24682468
}
24692469

24702470
static PyObject *
2471-
new_weak_cache()
2471+
new_weak_cache(void)
24722472
{
24732473
PyObject *weakref_module = PyImport_ImportModule("weakref");
24742474
if (weakref_module == NULL) {
@@ -2482,7 +2482,7 @@ new_weak_cache()
24822482
}
24832483

24842484
static int
2485-
initialize_caches()
2485+
initialize_caches(void)
24862486
{
24872487
// TODO: Move to a PyModule_GetState / PEP 573 based caching system.
24882488
if (TIMEDELTA_CACHE == NULL) {

0 commit comments

Comments
 (0)