diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2023-04-05 07:22:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 07:22:33 (GMT) |
| commit | 119f67de08f1fddc2a3f7b7caac7454cb57ef800 (patch) | |
| tree | a3549c73af276f62bf274f606b4ad3dd683fa363 /Python | |
| parent | 1a8f862e329c3872a11d4ef8eb85cf353ca2f4d5 (diff) | |
| download | cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.zip cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.tar.gz cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.tar.bz2 | |
gh-103167: Fix `-Wstrict-prototypes` warnings by using `(void)` for functions with no args (GH-103168)
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/ceval_gil.c | 2 | ||||
| -rw-r--r-- | Python/initconfig.c | 4 | ||||
| -rw-r--r-- | Python/sysmodule.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Python/ceval_gil.c b/Python/ceval_gil.c index 749d814..29796be 100644 --- a/Python/ceval_gil.c +++ b/Python/ceval_gil.c @@ -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; diff --git a/Python/initconfig.c b/Python/initconfig.c index db7f11e..0d42b7e 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -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); } diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4afb0f1..f1a294d 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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; |
