summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/test/perftest/schematest.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/rapidjson/test/perftest/schematest.cpp')
-rw-r--r--3rdparty/rapidjson/test/perftest/schematest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/3rdparty/rapidjson/test/perftest/schematest.cpp b/3rdparty/rapidjson/test/perftest/schematest.cpp
index 468f5fe6f6a..7d27344b5c1 100644
--- a/3rdparty/rapidjson/test/perftest/schematest.cpp
+++ b/3rdparty/rapidjson/test/perftest/schematest.cpp
@@ -11,6 +11,11 @@
using namespace rapidjson;
+RAPIDJSON_DIAG_PUSH
+#if defined(__GNUC__) && __GNUC__ >= 7
+RAPIDJSON_DIAG_OFF(format-overflow)
+#endif
+
template <typename Allocator>
static char* ReadFile(const char* filename, Allocator& allocator) {
const char *paths[] = {
@@ -42,6 +47,8 @@ static char* ReadFile(const char* filename, Allocator& allocator) {
return json;
}
+RAPIDJSON_DIAG_POP
+
class Schema : public PerfTest {
public:
Schema() {}