summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-04-05 07:22:33 (GMT)
committerGitHub <noreply@github.com>2023-04-05 07:22:33 (GMT)
commit119f67de08f1fddc2a3f7b7caac7454cb57ef800 (patch)
treea3549c73af276f62bf274f606b4ad3dd683fa363 /Modules/posixmodule.c
parent1a8f862e329c3872a11d4ef8eb85cf353ca2f4d5 (diff)
downloadcpython-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 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e38caf7..dd15010 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8546,7 +8546,7 @@ os_setpgrp_impl(PyObject *module)
#include <processsnapshot.h>
static PyObject*
-win32_getppid()
+win32_getppid(void)
{
DWORD error;
PyObject* result = NULL;
@@ -13330,7 +13330,7 @@ static int has_ShellExecute = -1;
static HINSTANCE (CALLBACK *Py_ShellExecuteW)(HWND, LPCWSTR, LPCWSTR, LPCWSTR,
LPCWSTR, INT);
static int
-check_ShellExecute()
+check_ShellExecute(void)
{
HINSTANCE hShell32;