summaryrefslogtreecommitdiffstats
path: root/swoole-build.patch
blob: 5ee6e39c53a7e452ca5bd9316968b967d2cd38f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;