File: gcc7.diff

package info (click to toggle)
rapidjson 1.1.0%2Bdfsg2-7.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,264 kB
  • sloc: cpp: 18,852; ansic: 2,434; python: 235; xml: 182; sh: 83; makefile: 10; javascript: 2
file content (24 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: fix build with gcc7
 From
 https://github.com/miloyip/rapidjson/commit/fe19b7b6016d446722621fb407738209d1a911e8 
and
 https://github.com/miloyip/rapidjson/commit/cba45fe9de6923b858edb0780e257b7257aa4f7b
Bug-Debian: https://bugs.debian.org/846568

---
Origin: upstream
Forwarded: not-needed
Last-Update: 2017-08-26

--- rapidjson-1.1.0+dfsg.orig/include/rapidjson/internal/regex.h
+++ rapidjson-1.1.0+dfsg/include/rapidjson/internal/regex.h
@@ -29,6 +29,9 @@ 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