Skip to content

Commit ca36244

Browse files
committed
Fix a maintainer-mode warning
1 parent ae1b7bf commit ca36244

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ext/standard/lcg.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ double php_combined_lcg(void)
5959
return z * 4.656613e-10;
6060
}
6161

62-
static void init_globals(LCGLS_D)
62+
static void lcg_init_globals(LCGLS_D);
63+
64+
static void lcg_init_globals(LCGLS_D)
6365
{
6466
LCG(s1) = 1;
6567
#ifdef ZTS
@@ -72,9 +74,9 @@ static void init_globals(LCGLS_D)
7274
static int php_minit_lcg(INIT_FUNC_ARGS)
7375
{
7476
#ifdef ZTS
75-
lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), init_globals, NULL);
77+
lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), lcg_init_globals, NULL);
7678
#else
77-
init_globals();
79+
lcg_init_globals();
7880
#endif
7981
return SUCCESS;
8082
}

ext/standard/php_lcg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PHP_FUNCTION(lcg_value);
3232
#define LCG(v) (lcg_globals->v)
3333
#define LCGLS_FETCH() php_lcg_globals *lcg_globals = ts_resource(lcg_globals_id)
3434
#else
35-
#define LCGLS_D
35+
#define LCGLS_D void
3636
#define LCG(v) (lcg_globals.v)
3737
#define LCGLS_FETCH()
3838
#endif

0 commit comments

Comments
 (0)