summaryrefslogtreecommitdiffstats
path: root/PC/launcher.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 /PC/launcher.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 'PC/launcher.c')
-rw-r--r--PC/launcher.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index 0776e57..dc26553 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -449,7 +449,7 @@ locate_pythons_for_key(HKEY root, REGSAM flags)
}
static void
-locate_store_pythons()
+locate_store_pythons(void)
{
#if defined(_M_X64)
/* 64bit process, so look in native registry */
@@ -466,7 +466,7 @@ locate_store_pythons()
}
static void
-locate_venv_python()
+locate_venv_python(void)
{
static wchar_t venv_python[MAX_PATH];
INSTALLED_PYTHON * ip;
@@ -495,7 +495,7 @@ locate_venv_python()
}
static void
-locate_all_pythons()
+locate_all_pythons(void)
{
/* venv Python is highest priority */
locate_venv_python();
@@ -694,7 +694,7 @@ static wchar_t wrapped_script_path[MAX_PATH];
* valid wrapped script file.
*/
static void
-locate_wrapped_script()
+locate_wrapped_script(void)
{
wchar_t * p;
size_t plen;
@@ -1034,7 +1034,7 @@ read_config_file(wchar_t * config_path)
}
}
-static void read_commands()
+static void read_commands(void)
{
if (launcher_ini_path[0])
read_config_file(launcher_ini_path);
@@ -1684,7 +1684,7 @@ wcsdup_pad(const wchar_t *s, int padding, int *newlen)
}
static wchar_t *
-get_process_name()
+get_process_name(void)
{
DWORD bufferLen = MAX_PATH;
DWORD len = bufferLen;