aboutsummaryrefslogtreecommitdiff
path: root/libraries/rapidjson/fix-build-on-gcc7.diff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2017-12-27 00:48:28 -0600
committerRobby Workman <rworkman@slackbuilds.org>2017-12-27 18:10:32 -0600
commitd8f337bb0a5367786ac391c3cd942613b9cd333f (patch)
tree25fdf1ead4633a1d37563c0eb5609d24024797a1 /libraries/rapidjson/fix-build-on-gcc7.diff
parent4b306a3452bc27b996722d8a523686baa0c60b5c (diff)
libraries/rapidjson: Fix build with gcc7
I ran into this trying to build rapidjson on ARM -current: https://github.com/Tencent/rapidjson/pull/941 Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/rapidjson/fix-build-on-gcc7.diff')
-rw-r--r--libraries/rapidjson/fix-build-on-gcc7.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/rapidjson/fix-build-on-gcc7.diff b/libraries/rapidjson/fix-build-on-gcc7.diff
new file mode 100644
index 000000000000..d55a4776781c
--- /dev/null
+++ b/libraries/rapidjson/fix-build-on-gcc7.diff
@@ -0,0 +1,13 @@
+diff -Nur rapidjson-1.1.0.orig/include/rapidjson/internal/regex.h rapidjson-1.1.0/include/rapidjson/internal/regex.h
+--- rapidjson-1.1.0.orig/include/rapidjson/internal/regex.h 2016-08-25 02:59:05.000000000 -0500
++++ rapidjson-1.1.0/include/rapidjson/internal/regex.h 2017-12-27 01:10:17.765316098 -0600
+@@ -29,6 +29,9 @@
+ #ifdef __GNUC__
+ RAPIDJSON_DIAG_PUSH
+ RAPIDJSON_DIAG_OFF(effc++)
++#if __GNUC__ >= 7
++RAPIDJSON_DIAG_OFF(implicit-fallthrough)
++#endif
+ #endif
+
+ #ifdef _MSC_VER