diff options
author | Harry Wong <harrywong@live.com> | 2017-05-04 05:32:45 +0300 |
---|---|---|
committer | Harry Wong <harrywong@live.com> | 2017-05-04 05:32:45 +0300 |
commit | cba45fe9de6923b858edb0780e257b7257aa4f7b (patch) | |
tree | 1cdc99970912235e76a73b0ec7f63f184e844a00 | |
parent | fe19b7b6016d446722621fb407738209d1a911e8 (diff) |
Onley apply to GCC 7
-rw-r--r-- | include/rapidjson/internal/regex.h | 2 |
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 |