From: ddzama Date: Thu, 31 Mar 2022 07:46:02 +0000 (+0300) Subject: 0032918: Coding Rules - suppress MSVS warnings from 3rdparty `rapidjson` on VS2019... X-Git-Tag: V7_7_0_beta~131 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e455c54bf0282a20931166b63a2fff0cbf670327;p=occt.git 0032918: Coding Rules - suppress MSVS warnings from 3rdparty `rapidjson` on VS2019/C++20 Microsoft Visual Studio Professional 2019 Version 16.11.11 std=c++20 Disable warning messages, occures in rapidjson library. --- diff --git a/src/RWGltf/RWGltf_GltfJsonParser.hxx b/src/RWGltf/RWGltf_GltfJsonParser.hxx index 234f4bf661..6b078ed12e 100644 --- a/src/RWGltf/RWGltf_GltfJsonParser.hxx +++ b/src/RWGltf/RWGltf_GltfJsonParser.hxx @@ -43,12 +43,14 @@ #ifdef HAVE_RAPIDJSON //#define RAPIDJSON_ASSERT + #include #include #include #include #include #include - + #include + typedef rapidjson::Document::ValueType RWGltf_JsonValue; #endif diff --git a/src/RWGltf/RWGltf_GltfOStreamWriter.hxx b/src/RWGltf/RWGltf_GltfOStreamWriter.hxx index 1746997acd..a10ac96942 100644 --- a/src/RWGltf/RWGltf_GltfOStreamWriter.hxx +++ b/src/RWGltf/RWGltf_GltfOStreamWriter.hxx @@ -14,8 +14,11 @@ #ifndef _RWGltf_GltfOStreamWriter_HeaderFile #define _RWGltf_GltfOStreamWriter_HeaderFile +// disable warnings, occures in rapidjson +#include #include #include +#include //! rapidjson::Writer wrapper for forward declaration. class RWGltf_GltfOStreamWriter : public rapidjson::Writer