]> OCCT Git - occt.git/commitdiff
0032918: Coding Rules - suppress MSVS warnings from 3rdparty `rapidjson` on VS2019...
authorddzama <ddzama@opencascade.com>
Thu, 31 Mar 2022 07:46:02 +0000 (10:46 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 8 Apr 2022 16:02:14 +0000 (19:02 +0300)
Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20

Disable warning messages, occures in rapidjson library.

src/RWGltf/RWGltf_GltfJsonParser.hxx
src/RWGltf/RWGltf_GltfOStreamWriter.hxx

index 234f4bf6613c3997207589df73d6e1b7bc161d08..6b078ed12e22117d89f0b913c2d007466e39c0d7 100644 (file)
 
 #ifdef HAVE_RAPIDJSON
   //#define RAPIDJSON_ASSERT
+  #include <Standard_WarningsDisable.hxx>
   #include <rapidjson/document.h>
   #include <rapidjson/prettywriter.h>
   #include <rapidjson/stringbuffer.h>
   #include <rapidjson/istreamwrapper.h>
   #include <rapidjson/ostreamwrapper.h>
-
+  #include <Standard_WarningsRestore.hxx>
+  
   typedef rapidjson::Document::ValueType RWGltf_JsonValue;
 #endif
 
index 1746997acd8dee6b5488f8dc796eb1f31beb86ee..a10ac96942127587c354da8c7fe3b105454802a1 100644 (file)
 #ifndef _RWGltf_GltfOStreamWriter_HeaderFile
 #define _RWGltf_GltfOStreamWriter_HeaderFile
 
+// disable warnings, occures in rapidjson
+#include <Standard_WarningsDisable.hxx>
 #include <rapidjson/prettywriter.h>
 #include <rapidjson/ostreamwrapper.h>
+#include <Standard_WarningsRestore.hxx>
 
 //! rapidjson::Writer wrapper for forward declaration.
 class RWGltf_GltfOStreamWriter : public rapidjson::Writer<rapidjson::OStreamWrapper>