Suppress a msvc warning

This commit is contained in:
Jeremy 2023-11-21 21:47:13 -06:00
parent 3a0db500d0
commit ae2a85c3f0
No known key found for this signature in database
GPG Key ID: B4C8300FEC395042

View File

@ -27,6 +27,13 @@
#define CPPTRACE_FORCE_NO_INLINE __attribute__((noinline))
#endif
#if _MSC_VER
#pragma warning(push)
// warning C4251: using non-dll-exported type in dll-exported type, firing on std::vector<frame_ptr> and others for some
// reason
#pragma warning(disable: 4251)
#endif
namespace cpptrace {
struct object_trace;
struct stacktrace;
@ -408,4 +415,8 @@ namespace cpptrace {
} \
} ()
#if _MSC_VER
#pragma warning(pop)
#endif
#endif