gh-103167: Fix -Wstrict-prototypes warnings by using (void) for functions with no args (GH-103168)

This commit is contained in:
Nikita Sobolev 2023-04-05 10:22:33 +03:00 committed by GitHub
parent 1a8f862e32
commit 119f67de08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 16 deletions

View file

@ -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;

View file

@ -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);
}

View file

@ -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;