Skip to content

Commit 4f10c80

Browse files
committed
Fix [-Wstrict-prototypes] in OpCache extension
1 parent d73aab4 commit 4f10c80

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ static void replay_warnings(zend_persistent_script *script) {
16821682
}
16831683
}
16841684

1685-
static void free_recorded_warnings() {
1685+
static void free_recorded_warnings(void) {
16861686
if (!ZCG(num_warnings)) {
16871687
return;
16881688
}
@@ -4009,7 +4009,7 @@ static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_s
40094009
return ce;
40104010
}
40114011

4012-
static void preload_ensure_classes_loadable() {
4012+
static void preload_ensure_classes_loadable(void) {
40134013
/* Run this in a loop, because additional classes may be loaded while updating constants etc. */
40144014
uint32_t checked_classes_idx = 0;
40154015
while (1) {
@@ -4803,8 +4803,8 @@ static int accel_finish_startup(void)
48034803
int rc;
48044804
int orig_error_reporting;
48054805

4806-
int (*orig_activate)() = sapi_module.activate;
4807-
int (*orig_deactivate)() = sapi_module.deactivate;
4806+
int (*orig_activate)(void) = sapi_module.activate;
4807+
int (*orig_deactivate)(void) = sapi_module.deactivate;
48084808
void (*orig_register_server_variables)(zval *track_vars_array) = sapi_module.register_server_variables;
48094809
int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.header_handler;
48104810
int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "Zend/zend_API.h"
2020

21-
static ZEND_COLD void undef_result_after_exception() {
21+
static ZEND_COLD void undef_result_after_exception(void) {
2222
const zend_op *opline = EG(opline_before_exception);
2323
ZEND_ASSERT(EG(exception));
2424
if (opline->result_type & (IS_VAR | IS_TMP_VAR)) {

0 commit comments

Comments
 (0)