From 426bcdf02120604cc13d9af9f161aec4307a2249 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 5 May 2019 17:51:08 +0200 Subject: [PATCH] Fix double incremenation in ffi This removes the warning of: `incremented both in the loop header and in the loop body` in the compilation step. --- ext/ffi/ffi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index 0e0803adca6..a0603086c51 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -780,7 +780,6 @@ static void zend_ffi_callback_trampoline(ffi_cif* cif, void* ret, void** args, v for (n = 0; n < callback_data->arg_count; n++) { zval_ptr_dtor(&fci.params[n]); - n++; } } free_alloca(fci.params, use_heap);