From f1fa8433041409c5e08211d24df622663ca6adf9 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 8 Feb 2023 22:42:44 +0000 Subject: [PATCH] opcache/pcntl/cli: Fixes few functions signatures. --- ext/opcache/jit/vtune/jitprofiling.c | 6 +++--- ext/pcntl/pcntl.c | 2 +- sapi/cli/ps_title.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/opcache/jit/vtune/jitprofiling.c b/ext/opcache/jit/vtune/jitprofiling.c index 86efe047c403d..3154611fec620 100644 --- a/ext/opcache/jit/vtune/jitprofiling.c +++ b/ext/opcache/jit/vtune/jitprofiling.c @@ -157,7 +157,7 @@ iJIT_NotifyEvent(iJIT_JVM_EVENT event_type, void *EventSpecificData) return ReturnValue; } -ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive() +ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive(void) { if (!iJIT_DLL_is_missing) { @@ -171,7 +171,7 @@ ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive() * on success: all functions load, iJIT_DLL_is_missing = 0, return value = 1 * on failure: all functions are NULL, iJIT_DLL_is_missing = 1, return value = 0 */ -static int loadiJIT_Funcs() +static int loadiJIT_Funcs(void) { static int bDllWasLoaded = 0; char *dllName = (char*)rcsid; /* !! Just to avoid unused code elimination */ @@ -301,7 +301,7 @@ static int loadiJIT_Funcs() return 1; } -ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID() +ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID(void) { static unsigned int methodID = 1; diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 0c11344e2580c..6f7d4cb3da627 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1074,7 +1074,7 @@ static void pcntl_signal_handler(int signo) } } -void pcntl_signal_dispatch() +void pcntl_signal_dispatch(void) { zval params[2], *handle, retval; struct php_pcntl_pending_signal *queue, *next; diff --git a/sapi/cli/ps_title.c b/sapi/cli/ps_title.c index a5a16f2dea125..8ff7ef719e17f 100644 --- a/sapi/cli/ps_title.c +++ b/sapi/cli/ps_title.c @@ -284,7 +284,7 @@ char** save_ps_args(int argc, char** argv) * and the init function was called. * Otherwise returns NOT_AVAILABLE or NOT_INITIALIZED */ -int is_ps_title_available() +int is_ps_title_available(void) { #ifdef PS_USE_NONE return PS_TITLE_NOT_AVAILABLE; /* disabled functionality */