diff --git a/include/cereal/external/rapidjson/internal/regex.h b/include/cereal/external/rapidjson/internal/regex.h index 3bfa3ec3..81c51070 100644 --- a/include/cereal/external/rapidjson/internal/regex.h +++ b/include/cereal/external/rapidjson/internal/regex.h @@ -29,6 +29,9 @@ CEREAL_RAPIDJSON_DIAG_OFF(implicit-fallthrough) #ifdef __GNUC__ CEREAL_RAPIDJSON_DIAG_PUSH CEREAL_RAPIDJSON_DIAG_OFF(effc++) +#if __GNUC__ >= 7 + CEREAL_RAPIDJSON_DIAG_OFF(implicit-fallthrough) +#endif #endif #ifdef _MSC_VER @@ -694,6 +697,10 @@ CEREAL_RAPIDJSON_NAMESPACE_END CEREAL_RAPIDJSON_DIAG_POP #endif +#ifdef __GNUC__ +CEREAL_RAPIDJSON_DIAG_POP +#endif + #ifdef _MSC_VER CEREAL_RAPIDJSON_DIAG_POP #endif