Skip to content

Commit 1e19749

Browse files
committed
Fix [-Wstrict-prototypes] in PCRE extension
1 parent 15a7824 commit 1e19749

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
@@ -942,7 +942,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req) /* {{{ */
942942
#else
943943
#define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval()
944944

945-
static inline void php_openssl_rand_add_timeval() /* {{{ */
945+
static inline void php_openssl_rand_add_timeval(void) /* {{{ */
946946
{
947947
struct timeval tv;
948948

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)