gnu: Add kafs-client
[jackhill/guix/guix.git] / gnu / packages / patches / rapidjson-gcc-compat.patch
CommitLineData
c1f4073f
MB
1Disable -Werror=implicit-fallthrough on GCC7 and later. Taken from upstream:
2https://github.com/Tencent/rapidjson/commit/fe19b7b6016d446722621fb407738209d1a911e8
3https://github.com/Tencent/rapidjson/commit/cba45fe9de6923b858edb0780e257b7257aa4f7b
4
5diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h
6index 422a5240..d4039716 100644
7--- a/include/rapidjson/internal/regex.h
8+++ b/include/rapidjson/internal/regex.h
9@@ -29,6 +29,9 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough)
10 #ifdef __GNUC__
11 RAPIDJSON_DIAG_PUSH
12 RAPIDJSON_DIAG_OFF(effc++)
13+#if __GNUC__ >= 7
14+RAPIDJSON_DIAG_OFF(implicit-fallthrough)
15+#endif
16 #endif
17
18 #ifdef _MSC_VER