MinGW: Fix -Wstrict-prototypes

This commit is contained in:
João Valverde 2023-01-13 16:24:20 +00:00
parent c8fe23575f
commit 10d197c64d
3 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@
#include <wsutil/ws_pipe.h>
#ifdef _WIN32
static void create_dummy_signal_pipe();
static void create_dummy_signal_pipe(void);
static HANDLE dummy_signal_pipe; /* Dummy named pipe which lets the child check for a dropped connection */
static gchar *dummy_control_id;
#else
@ -2094,7 +2094,7 @@ sync_pipe_signame(int sig)
#ifdef _WIN32
static void create_dummy_signal_pipe() {
static void create_dummy_signal_pipe(void) {
gchar *dummy_signal_pipe_name;
if (dummy_signal_pipe != NULL) return;

View File

@ -450,7 +450,7 @@ ws_stdio_freopen (const gchar *filename, const gchar *mode, FILE *stream)
/* DLL loading */
static gboolean
init_dll_load_paths()
init_dll_load_paths(void)
{
TCHAR path_w[MAX_PATH];

View File

@ -781,7 +781,7 @@ static void glib_log_handler(const char *domain, GLogLevelFlags flags,
#ifdef _WIN32
static void load_registry()
static void load_registry(void)
{
LONG lResult;
DWORD ptype;
@ -836,7 +836,7 @@ void ws_log_init(const char *progname,
glib_log_handler, NULL);
#ifdef _WIN32
load_registry(vcmdarg_err);
load_registry();
/* if the user wants a console to be always there, well, we should open one for him */
if (ws_log_console_open == LOG_CONSOLE_OPEN_ALWAYS) {