summaryrefslogtreecommitdiffstats
path: root/swoole-build.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-08-02 07:35:52 +0200
committerRemi Collet <remi@php.net>2022-08-02 07:35:52 +0200
commit9bce209f6a1ff8a8f5d7f4362d88fac4fc02985b (patch)
treeebd37bcfd42d31327b499001a4a77bab420d67ee /swoole-build.patch
duplicate v4
Diffstat (limited to 'swoole-build.patch')
-rw-r--r--swoole-build.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/swoole-build.patch b/swoole-build.patch
new file mode 100644
index 0000000..5ee6e39
--- /dev/null
+++ b/swoole-build.patch
@@ -0,0 +1,14 @@
+diff --git a/include/swoole_string.h b/include/swoole_string.h
+index 4affbac81..f80890c46 100644
+--- a/include/swoole_string.h
++++ b/include/swoole_string.h
+@@ -25,6 +25,9 @@
+ #define SW_STRINGS(s) s->str, s->size
+ #define SW_STRINGCVL(s) s->str + s->offset, s->length - s->offset
+
++/* see https://github.com/swoole/swoole-src/issues/4693 */
++#pragma GCC diagnostic ignored "-Wformat-security"
++
+ namespace swoole {
+
+ typedef std::function<bool(const char *, size_t)> StringExplodeHandler;