Skip to content

Commit 77c1ea1

Browse files
committed
Fix [-Wstrict-prototypes] in PCRE extension
1 parent 319dbd1 commit 77c1ea1

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
@@ -964,14 +964,14 @@ PHPAPI void php_pcre_free_match_data(pcre2_match_data *match_data)
964964
}
965965
}/*}}}*/
966966

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

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

0 commit comments

Comments
 (0)