Skip to content

Commit 883602d

Browse files
committed
Fix [-Wstrict-prototypes] in PHPDBG SAPI
1 parent d5cbfd2 commit 883602d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ static zend_bool is_this_fetch(zend_ast *ast) /* {{{ */
26692669
}
26702670
/* }}} */
26712671

2672-
static zend_bool this_guaranteed_exists() /* {{{ */
2672+
static zend_bool this_guaranteed_exists(void) /* {{{ */
26732673
{
26742674
zend_op_array *op_array = CG(active_op_array);
26752675
/* Instance methods always have a $this.

sapi/phpdbg/phpdbg_frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ zend_string *phpdbg_compile_stackframe(zend_execute_data *ex) {
8989
return s.s;
9090
}
9191

92-
void phpdbg_print_cur_frame_info() {
92+
void phpdbg_print_cur_frame_info(void) {
9393
const char *file_chr = zend_get_executed_filename();
9494
zend_string *file = zend_string_init(file_chr, strlen(file_chr), 0);
9595

sapi/phpdbg/phpdbg_print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ PHPDBG_PRINT(func) /* {{{ */
257257
return SUCCESS;
258258
} /* }}} */
259259

260-
void phpdbg_print_opcodes_main() {
260+
void phpdbg_print_opcodes_main(void) {
261261
phpdbg_out("function name: (null)\n");
262262
phpdbg_print_function_helper((zend_function *) PHPDBG_G(ops));
263263
}

sapi/phpdbg/phpdbg_prompt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ PHPDBG_COMMAND(continue) /* {{{ */
604604
return PHPDBG_NEXT;
605605
} /* }}} */
606606

607-
int phpdbg_skip_line_helper() /* {{{ */ {
607+
int phpdbg_skip_line_helper(void) /* {{{ */ {
608608
zend_execute_data *ex = phpdbg_user_execute_data(EG(current_execute_data));
609609
const zend_op_array *op_array = &ex->func->op_array;
610610
const zend_op *opline = op_array->opcodes;
@@ -1642,7 +1642,7 @@ int phpdbg_interactive(zend_bool allow_async_unsafe, char *input) /* {{{ */
16421642
return ret;
16431643
} /* }}} */
16441644

1645-
static inline void list_code() {
1645+
static inline void list_code(void) {
16461646
if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)) {
16471647
const char *file_char = zend_get_executed_filename();
16481648
zend_string *file = zend_string_init(file_char, strlen(file_char), 0);

0 commit comments

Comments
 (0)