mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-29 22:36:19 +08:00
Disable false positives in MSVC compilation
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#ifndef RFL_RFL_HPP_
|
||||
#define RFL_RFL_HPP_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4244)
|
||||
#pragma warning(disable : 4101)
|
||||
#endif
|
||||
|
||||
#include "rfl/AllOf.hpp"
|
||||
#include "rfl/AnyOf.hpp"
|
||||
#include "rfl/Box.hpp"
|
||||
@@ -40,4 +46,8 @@
|
||||
#include "rfl/to_named_tuple.hpp"
|
||||
#include "rfl/visit.hpp"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1126,4 +1126,8 @@ constexpr auto get_field_name_ptrs() {
|
||||
} // namespace internal
|
||||
} // namespace rfl
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user