mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
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.
This commit is contained in:
parent
d31e5dbbb4
commit
e455c54bf0
@ -43,11 +43,13 @@
|
|||||||
|
|
||||||
#ifdef HAVE_RAPIDJSON
|
#ifdef HAVE_RAPIDJSON
|
||||||
//#define RAPIDJSON_ASSERT
|
//#define RAPIDJSON_ASSERT
|
||||||
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#include <rapidjson/document.h>
|
#include <rapidjson/document.h>
|
||||||
#include <rapidjson/prettywriter.h>
|
#include <rapidjson/prettywriter.h>
|
||||||
#include <rapidjson/stringbuffer.h>
|
#include <rapidjson/stringbuffer.h>
|
||||||
#include <rapidjson/istreamwrapper.h>
|
#include <rapidjson/istreamwrapper.h>
|
||||||
#include <rapidjson/ostreamwrapper.h>
|
#include <rapidjson/ostreamwrapper.h>
|
||||||
|
#include <Standard_WarningsRestore.hxx>
|
||||||
|
|
||||||
typedef rapidjson::Document::ValueType RWGltf_JsonValue;
|
typedef rapidjson::Document::ValueType RWGltf_JsonValue;
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,8 +14,11 @@
|
|||||||
#ifndef _RWGltf_GltfOStreamWriter_HeaderFile
|
#ifndef _RWGltf_GltfOStreamWriter_HeaderFile
|
||||||
#define _RWGltf_GltfOStreamWriter_HeaderFile
|
#define _RWGltf_GltfOStreamWriter_HeaderFile
|
||||||
|
|
||||||
|
// disable warnings, occures in rapidjson
|
||||||
|
#include <Standard_WarningsDisable.hxx>
|
||||||
#include <rapidjson/prettywriter.h>
|
#include <rapidjson/prettywriter.h>
|
||||||
#include <rapidjson/ostreamwrapper.h>
|
#include <rapidjson/ostreamwrapper.h>
|
||||||
|
#include <Standard_WarningsRestore.hxx>
|
||||||
|
|
||||||
//! rapidjson::Writer wrapper for forward declaration.
|
//! rapidjson::Writer wrapper for forward declaration.
|
||||||
class RWGltf_GltfOStreamWriter : public rapidjson::Writer<rapidjson::OStreamWrapper>
|
class RWGltf_GltfOStreamWriter : public rapidjson::Writer<rapidjson::OStreamWrapper>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user