Skip to content

Commit cba45fe

Browse files
committed
Onley apply to GCC 7
1 parent fe19b7b commit cba45fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/rapidjson/internal/regex.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough)
2929
#ifdef __GNUC__
3030
RAPIDJSON_DIAG_PUSH
3131
RAPIDJSON_DIAG_OFF(effc++)
32+
#if __GNUC__ >= 7
3233
RAPIDJSON_DIAG_OFF(implicit-fallthrough)
3334
#endif
35+
#endif
3436

3537
#ifdef _MSC_VER
3638
RAPIDJSON_DIAG_PUSH

0 commit comments

Comments
 (0)