1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: fix build with gcc7
From
https://github.com/miloyip/rapidjson/commit/fe19b7b6016d446722621fb407738209d1a911e8
and
https://github.com/miloyip/rapidjson/commit/cba45fe9de6923b858edb0780e257b7257aa4f7b
Bug-Debian: https://bugs.debian.org/846568
---
Origin: upstream
Forwarded: not-needed
Last-Update: 2017-08-26
--- rapidjson-1.1.0+dfsg.orig/include/rapidjson/internal/regex.h
+++ rapidjson-1.1.0+dfsg/include/rapidjson/internal/regex.h
@@ -29,6 +29,9 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough)
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
+#if __GNUC__ >= 7
+RAPIDJSON_DIAG_OFF(implicit-fallthrough)
+#endif
#endif
#ifdef _MSC_VER
|