Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Wong <harrywong@live.com>2017-05-04 05:32:45 +0300
committerHarry Wong <harrywong@live.com>2017-05-04 05:32:45 +0300
commitcba45fe9de6923b858edb0780e257b7257aa4f7b (patch)
tree1cdc99970912235e76a73b0ec7f63f184e844a00
parentfe19b7b6016d446722621fb407738209d1a911e8 (diff)
Onley apply to GCC 7
-rw-r--r--include/rapidjson/internal/regex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h
index 6d110bdb..e1a2faae 100644
--- a/include/rapidjson/internal/regex.h
+++ b/include/rapidjson/internal/regex.h
@@ -29,8 +29,10 @@ 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
RAPIDJSON_DIAG_PUSH