Skip to content

Commit f42c00a

Browse files
committed
Fix [-Wstrict-prototypes] in Zend/ .c files
1 parent 6f0c510 commit f42c00a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Zend/zend_compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ static zend_bool is_generator_compatible_class_type(zend_string *name) {
12571257
|| zend_string_equals_literal_ci(name, "Generator");
12581258
}
12591259

1260-
static void zend_mark_function_as_generator() /* {{{ */
1260+
static void zend_mark_function_as_generator(void) /* {{{ */
12611261
{
12621262
if (!CG(active_op_array)->function_name) {
12631263
zend_error_noreturn(E_COMPILE_ERROR,
@@ -1466,7 +1466,7 @@ static zend_bool zend_try_ct_eval_const(zval *zv, zend_string *name, zend_bool i
14661466
}
14671467
/* }}} */
14681468

1469-
static inline zend_bool zend_is_scope_known() /* {{{ */
1469+
static inline zend_bool zend_is_scope_known(void) /* {{{ */
14701470
{
14711471
if (CG(active_op_array)->fn_flags & ZEND_ACC_CLOSURE) {
14721472
/* Closures can be rebound to a different scope */
@@ -2272,7 +2272,7 @@ static void zend_short_circuiting_mark_inner(zend_ast *ast) {
22722272
}
22732273
}
22742274

2275-
static uint32_t zend_short_circuiting_checkpoint()
2275+
static uint32_t zend_short_circuiting_checkpoint(void)
22762276
{
22772277
return zend_stack_count(&CG(short_circuiting_opnums));
22782278
}

Zend/zend_gdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ZEND_API zend_gdbjit_descriptor __jit_debug_descriptor = {
4949
1, ZEND_GDBJIT_NOACTION, NULL, NULL
5050
};
5151

52-
ZEND_API zend_never_inline void __jit_debug_register_code()
52+
ZEND_API zend_never_inline void __jit_debug_register_code(void)
5353
{
5454
__asm__ __volatile__("");
5555
}

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ static int check_variance_obligation(zval *zv) {
23062306
return ZEND_HASH_APPLY_REMOVE;
23072307
}
23082308

2309-
static void load_delayed_classes() {
2309+
static void load_delayed_classes(void) {
23102310
HashTable *delayed_autoloads = CG(delayed_autoloads);
23112311
zend_string *name;
23122312

Zend/zend_language_scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ static int exit_nesting(char closing)
13121312
return 0;
13131313
}
13141314

1315-
static int check_nesting_at_end()
1315+
static int check_nesting_at_end(void)
13161316
{
13171317
if (!zend_stack_is_empty(&SCNG(nest_location_stack))) {
13181318
zend_nest_location *nest_loc = zend_stack_top(&SCNG(nest_location_stack));

0 commit comments

Comments
 (0)