Skip to content

Commit fe2b360

Browse files
authored
Merge pull request Tencent#941 from harrywong/master
Add fallthrough attribute to suppress GCC 7.1 warning
2 parents a13acda + cba45fe commit fe2b360

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/rapidjson/internal/regex.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough)
2929
#ifdef __GNUC__
3030
RAPIDJSON_DIAG_PUSH
3131
RAPIDJSON_DIAG_OFF(effc++)
32+
#if __GNUC__ >= 7
33+
RAPIDJSON_DIAG_OFF(implicit-fallthrough)
34+
#endif
3235
#endif
3336

3437
#ifdef _MSC_VER

0 commit comments

Comments
 (0)