File fix_compilation_gcc7.patch of Package rapidjson

commit fe19b7b6016d446722621fb407738209d1a911e8
Author: Harry Wong <harrywong@live.com>
Date:   Thu May 4 10:08:48 2017 +0800

    Supress implicit fallthrough in GCC

diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h
index 1369ea26..6d110bdb 100644
--- a/include/rapidjson/internal/regex.h
+++ b/include/rapidjson/internal/regex.h
@@ -29,6 +29,7 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough)
 #ifdef __GNUC__
 RAPIDJSON_DIAG_PUSH
 RAPIDJSON_DIAG_OFF(effc++)
+RAPIDJSON_DIAG_OFF(implicit-fallthrough)
 #endif
 
 #ifdef _MSC_VER
commit cba45fe9de6923b858edb0780e257b7257aa4f7b
Author: Harry Wong <harrywong@live.com>
Date:   Thu May 4 10:32:45 2017 +0800

    Onley apply to GCC 7

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
openSUSE Build Service is sponsored by