Skip to content

Commit 81aedad

Browse files
committedFeb 9, 2023
opcache/pcntl/cli: Fixes few functions signatures.
1 parent 06120df commit 81aedad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎ext/opcache/jit/vtune/jitprofiling.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ iJIT_NotifyEvent(iJIT_JVM_EVENT event_type, void *EventSpecificData)
157157
return ReturnValue;
158158
}
159159

160-
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive()
160+
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive(void)
161161
{
162162
if (!iJIT_DLL_is_missing)
163163
{
@@ -171,7 +171,7 @@ ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive()
171171
* on success: all functions load, iJIT_DLL_is_missing = 0, return value = 1
172172
* on failure: all functions are NULL, iJIT_DLL_is_missing = 1, return value = 0
173173
*/
174-
static int loadiJIT_Funcs()
174+
static int loadiJIT_Funcs(void)
175175
{
176176
static int bDllWasLoaded = 0;
177177
char *dllName = (char*)rcsid; /* !! Just to avoid unused code elimination */
@@ -301,7 +301,7 @@ static int loadiJIT_Funcs()
301301
return 1;
302302
}
303303

304-
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID()
304+
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID(void)
305305
{
306306
static unsigned int methodID = 1;
307307

‎ext/pcntl/pcntl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ static void pcntl_signal_handler(int signo)
10741074
}
10751075
}
10761076

1077-
void pcntl_signal_dispatch()
1077+
void pcntl_signal_dispatch(void)
10781078
{
10791079
zval params[2], *handle, retval;
10801080
struct php_pcntl_pending_signal *queue, *next;

‎sapi/cli/ps_title.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ char** save_ps_args(int argc, char** argv)
284284
* and the init function was called.
285285
* Otherwise returns NOT_AVAILABLE or NOT_INITIALIZED
286286
*/
287-
int is_ps_title_available()
287+
int is_ps_title_available(void)
288288
{
289289
#ifdef PS_USE_NONE
290290
return PS_TITLE_NOT_AVAILABLE; /* disabled functionality */

0 commit comments

Comments
 (0)