Skip to content

Commit 01fc380

Browse files
committed
fix Clang warning
1 parent 7e01eb9 commit 01fc380

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/php_random_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ typedef struct _php_random_class_algo {
2828
const unsigned char bytes;
2929
const size_t state_size;
3030
uint64_t (*next)(void *state);
31-
void* (*init)();
31+
void* (*init)(void);
3232
void (*seed)(void *state, const zend_long seed);
3333
int (*serialize)(void *state, zval *return_value);
3434
int (*unserialize)(void *state, HashTable *data);

ext/standard/random_class.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static uint64_t xorshift128plus_next(void *state) {
344344
return r;
345345
}
346346

347-
static void* xorshift128plus_init() {
347+
static void* xorshift128plus_init(void) {
348348
return ecalloc(1, sizeof(xorshift128plus_state));
349349
}
350350

@@ -445,7 +445,7 @@ static uint64_t mt19937_next(void *state) {
445445
return ( s1 ^ (s1 >> 18) );
446446
}
447447

448-
static void* mt19937_init() {
448+
static void* mt19937_init(void) {
449449
return ecalloc(1, sizeof(mt19937_state));
450450
}
451451

0 commit comments

Comments
 (0)