mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
In addition, fix some other minor violations of C99.
This commit is contained in:
parent
ae2c32f32b
commit
1a2252ed39
11 changed files with 26 additions and 24 deletions
|
@ -1750,7 +1750,7 @@ _alloc_preinit_entry(const wchar_t *value)
|
|||
|
||||
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
|
||||
return node;
|
||||
};
|
||||
}
|
||||
|
||||
static int
|
||||
_append_preinit_entry(_Py_PreInitEntry *optionlist, const wchar_t *value)
|
||||
|
@ -1772,7 +1772,7 @@ _append_preinit_entry(_Py_PreInitEntry *optionlist, const wchar_t *value)
|
|||
last_entry->next = new_entry;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
static void
|
||||
_clear_preinit_entries(_Py_PreInitEntry *optionlist)
|
||||
|
@ -1789,7 +1789,7 @@ _clear_preinit_entries(_Py_PreInitEntry *optionlist)
|
|||
current = next;
|
||||
}
|
||||
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
|
||||
};
|
||||
}
|
||||
|
||||
static void
|
||||
_clear_all_preinit_options(void)
|
||||
|
@ -1820,7 +1820,7 @@ _PySys_ReadPreInitOptions(void)
|
|||
|
||||
_clear_all_preinit_options();
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
get_warnoptions(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue