Skip to content

Commit 70df2d7

Browse files
author
Sascha Schumann
committed
Fix some warnings
1 parent e5d956d commit 70df2d7

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

Zend/zend-parser.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
%% /* Rules */
131131

132132
top_statement_list:
133-
top_statement_list { do_extended_info(CLS_C); } top_statement { ELS_FETCH(); HANDLE_INTERACTIVE(); }
133+
top_statement_list { do_extended_info(CLS_C); } top_statement { HANDLE_INTERACTIVE(); }
134134
| /* empty */
135135
;
136136

@@ -142,7 +142,7 @@ top_statement:
142142

143143

144144
inner_statement_list:
145-
inner_statement_list { do_extended_info(CLS_C); } inner_statement { ELS_FETCH(); HANDLE_INTERACTIVE(); }
145+
inner_statement_list { do_extended_info(CLS_C); } inner_statement { HANDLE_INTERACTIVE(); }
146146
| /* empty */
147147
;
148148

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions)
294294
zend_compiler_globals *compiler_globals;
295295
zend_executor_globals *executor_globals;
296296

297-
alloc_globals_id = ts_allocate_id(sizeof(zend_alloc_globals), alloc_globals_ctor, NULL);
297+
alloc_globals_id = ts_allocate_id(sizeof(zend_alloc_globals), (ts_allocate_ctor) alloc_globals_ctor, NULL);
298298
#else
299299
start_memory_manager(ALS_C);
300300
#endif

Zend/zend_API.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ ZEND_API int getParameters(int ht, int param_count,...)
4242
va_list ptr;
4343
zval **param, *param_ptr;
4444
ELS_FETCH();
45-
ALS_FETCH();
4645

4746
p = EG(argument_stack).top_element-1;
4847
arg_count = (ulong) *p;

Zend/zend_compile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,6 @@ void do_begin_class_member_function_call(znode *class_name, znode *function_name
830830
void do_end_function_call(znode *function_name, znode *result, znode *argument_list, int is_method, int is_dynamic_fcall CLS_DC)
831831
{
832832
zend_op *opline = get_next_op(CG(active_op_array) CLS_CC);
833-
ELS_FETCH();
834833

835834
if (function_name->op_type==IS_CONST && !is_method && !is_dynamic_fcall) {
836835
opline->opcode = ZEND_DO_FCALL;

Zend/zend_execute_API.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ int call_user_function_ex(HashTable *function_table, zval *object, zval *functio
314314
zend_function_state *original_function_state_ptr;
315315
zend_op_array *original_op_array;
316316
zend_op **original_opline_ptr;
317-
CLS_FETCH();
318317
ELS_FETCH();
319318

320319
if (object) {

0 commit comments

Comments
 (0)