Skip to content

Commit 99787cc

Browse files
committed
Fix [-Wstrict-prototypes] in OpCache extension
1 parent c2adfb4 commit 99787cc

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
}
@@ -3981,7 +3981,7 @@ static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_s
39813981
return ce;
39823982
}
39833983

3984-
static void preload_ensure_classes_loadable() {
3984+
static void preload_ensure_classes_loadable(void) {
39853985
/* Run this in a loop, because additional classes may be loaded while updating constants etc. */
39863986
uint32_t checked_classes_idx = 0;
39873987
while (1) {
@@ -4773,8 +4773,8 @@ static int accel_finish_startup(void)
47734773
int rc;
47744774
int orig_error_reporting;
47754775

4776-
int (*orig_activate)() = sapi_module.activate;
4777-
int (*orig_deactivate)() = sapi_module.deactivate;
4776+
int (*orig_activate)(void) = sapi_module.activate;
4777+
int (*orig_deactivate)(void) = sapi_module.deactivate;
47784778
void (*orig_register_server_variables)(zval *track_vars_array) = sapi_module.register_server_variables;
47794779
int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.header_handler;
47804780
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)