summaryrefslogtreecommitdiffstats
path: root/0002-fix-implicit-int.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-06-06 10:44:03 +0200
committerRemi Collet <remi@php.net>2024-06-06 10:44:03 +0200
commit3e818862cb1120788bc66fa85ba00a3588878a23 (patch)
tree12eb606caa5e1e888bc7599610395f18620a1e54 /0002-fix-implicit-int.patch
parent3bc96772fc3ee55730b11773be306d0413d524d5 (diff)
update to 5.1.3HEADmaster
fix build warnings (errors with GCC 14) using patch from https://github.com/swoole/swoole-src/pull/5363
Diffstat (limited to '0002-fix-implicit-int.patch')
-rw-r--r--0002-fix-implicit-int.patch27
1 files changed, 27 insertions, 0 deletions
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 <remi@remirepo.net>
+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
+