From 3e818862cb1120788bc66fa85ba00a3588878a23 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 6 Jun 2024 10:44:03 +0200 Subject: update to 5.1.3 fix build warnings (errors with GCC 14) using patch from https://github.com/swoole/swoole-src/pull/5363 --- 0002-fix-implicit-int.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 0002-fix-implicit-int.patch (limited to '0002-fix-implicit-int.patch') diff --git a/0002-fix-implicit-int.patch b/0002-fix-implicit-int.patch new file mode 100644 index 0000000..728187d --- /dev/null +++ b/0002-fix-implicit-int.patch @@ -0,0 +1,27 @@ +From c127c74ba12ffb62afa653710c574f28e469e7a7 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Thu, 6 Jun 2024 10:16:26 +0200 +Subject: [PATCH 2/2] fix implicit int + +--- + ext-src/php_swoole_call_stack.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ext-src/php_swoole_call_stack.h b/ext-src/php_swoole_call_stack.h +index 8c89f8305..639a303d7 100644 +--- a/ext-src/php_swoole_call_stack.h ++++ b/ext-src/php_swoole_call_stack.h +@@ -18,8 +18,8 @@ + + #ifdef ZEND_CHECK_STACK_LIMIT + #define HOOK_PHP_CALL_STACK(callback) \ +- auto __stack_limit = EG(stack_limit); \ +- auto __stack_base = EG(stack_base); \ ++ void *__stack_limit = EG(stack_limit); \ ++ void *__stack_base = EG(stack_base); \ + EG(stack_base) = (void *) 0; \ + EG(stack_limit) = (void *) 0; \ + callback EG(stack_limit) = __stack_limit; \ +-- +2.45.1 + -- cgit