mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-103167: Fix -Wstrict-prototypes
warnings by using (void)
for functions with no args (GH-103168)
This commit is contained in:
parent
1a8f862e32
commit
119f67de08
7 changed files with 16 additions and 16 deletions
|
@ -467,7 +467,7 @@ void _PyEval_SetSwitchInterval(unsigned long microseconds)
|
|||
gil->interval = microseconds;
|
||||
}
|
||||
|
||||
unsigned long _PyEval_GetSwitchInterval()
|
||||
unsigned long _PyEval_GetSwitchInterval(void)
|
||||
{
|
||||
struct _gil_runtime_state *gil = &_PyRuntime.ceval.gil;
|
||||
return gil->interval;
|
||||
|
|
|
@ -2355,13 +2355,13 @@ config_usage(int error, const wchar_t* program)
|
|||
}
|
||||
|
||||
static void
|
||||
config_envvars_usage()
|
||||
config_envvars_usage(void)
|
||||
{
|
||||
printf(usage_envvars, (wint_t)DELIM, (wint_t)DELIM, PYTHONHOMEHELP);
|
||||
}
|
||||
|
||||
static void
|
||||
config_xoptions_usage()
|
||||
config_xoptions_usage(void)
|
||||
{
|
||||
puts(usage_xoptions);
|
||||
}
|
||||
|
|
|
@ -1488,7 +1488,7 @@ static PyStructSequence_Desc windows_version_desc = {
|
|||
};
|
||||
|
||||
static PyObject *
|
||||
_sys_getwindowsversion_from_kernel32()
|
||||
_sys_getwindowsversion_from_kernel32(void)
|
||||
{
|
||||
#ifndef MS_WINDOWS_DESKTOP
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue