Skip to content

Commit 9e940bb

Browse files
committed
Fix [-Wstrict-prototypes] in OpCache extension
1 parent 0e391e5 commit 9e940bb

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
@@ -1680,7 +1680,7 @@ static void replay_warnings(zend_persistent_script *script) {
16801680
}
16811681
}
16821682

1683-
static void free_recorded_warnings() {
1683+
static void free_recorded_warnings(void) {
16841684
if (!ZCG(num_warnings)) {
16851685
return;
16861686
}
@@ -3990,7 +3990,7 @@ static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_s
39903990
return ce;
39913991
}
39923992

3993-
static void preload_ensure_classes_loadable() {
3993+
static void preload_ensure_classes_loadable(void) {
39943994
/* Run this in a loop, because additional classes may be loaded while updating constants etc. */
39953995
uint32_t checked_classes_idx = 0;
39963996
while (1) {
@@ -4785,8 +4785,8 @@ static int accel_finish_startup(void)
47854785
int rc;
47864786
int orig_error_reporting;
47874787

4788-
int (*orig_activate)() = sapi_module.activate;
4789-
int (*orig_deactivate)() = sapi_module.deactivate;
4788+
int (*orig_activate)(void) = sapi_module.activate;
4789+
int (*orig_deactivate)(void) = sapi_module.deactivate;
47904790
void (*orig_register_server_variables)(zval *track_vars_array) = sapi_module.register_server_variables;
47914791
int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.header_handler;
47924792
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)