Skip to content

Commit 6ad5917

Browse files
committed
Fix [-Wstrict-prototypes] in PCRE extension
1 parent ce4abcb commit 6ad5917

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
@@ -936,7 +936,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req) /* {{{ */
936936
#else
937937
#define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval()
938938

939-
static inline void php_openssl_rand_add_timeval() /* {{{ */
939+
static inline void php_openssl_rand_add_timeval(void) /* {{{ */
940940
{
941941
struct timeval tv;
942942

ext/pcre/php_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,14 @@ PHPAPI void php_pcre_free_match_data(pcre2_match_data *match_data)
965965
}
966966
}/*}}}*/
967967

968-
static void init_unmatched_null_pair() {
968+
static void init_unmatched_null_pair(void) {
969969
zval val1, val2;
970970
ZVAL_NULL(&val1);
971971
ZVAL_LONG(&val2, -1);
972972
ZVAL_ARR(&PCRE_G(unmatched_null_pair), zend_new_pair(&val1, &val2));
973973
}
974974

975-
static void init_unmatched_empty_pair() {
975+
static void init_unmatched_empty_pair(void) {
976976
zval val1, val2;
977977
ZVAL_EMPTY_STRING(&val1);
978978
ZVAL_LONG(&val2, -1);

0 commit comments

Comments
 (0)