Skip to content

Commit eca7281

Browse files
committed
Fix [-Wstrict-prototypes] in PCRE extension
1 parent fec08c3 commit eca7281

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req) /* {{{ */
853853
#else
854854
#define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval()
855855

856-
static inline void php_openssl_rand_add_timeval() /* {{{ */
856+
static inline void php_openssl_rand_add_timeval(void) /* {{{ */
857857
{
858858
struct timeval tv;
859859

ext/pcre/php_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,14 +946,14 @@ PHPAPI void php_pcre_free_match_data(pcre2_match_data *match_data)
946946
}
947947
}/*}}}*/
948948

949-
static void init_unmatched_null_pair() {
949+
static void init_unmatched_null_pair(void) {
950950
zval val1, val2;
951951
ZVAL_NULL(&val1);
952952
ZVAL_LONG(&val2, -1);
953953
ZVAL_ARR(&PCRE_G(unmatched_null_pair), zend_new_pair(&val1, &val2));
954954
}
955955

956-
static void init_unmatched_empty_pair() {
956+
static void init_unmatched_empty_pair(void) {
957957
zval val1, val2;
958958
ZVAL_EMPTY_STRING(&val1);
959959
ZVAL_LONG(&val2, -1);

0 commit comments

Comments
 (0)