Update warning supression

This commit is contained in:
Jeremy 2023-10-04 13:14:21 -04:00
parent 81b2e46df1
commit 15b2f36934
No known key found for this signature in database
GPG Key ID: 3E11861CB34E158C

View File

@ -21,8 +21,10 @@
namespace cpptrace { namespace cpptrace {
namespace detail { namespace detail {
#if IS_MSVC
#pragma warning(push) #pragma warning(push)
#pragma warning(disable: 4740) // warning C4740: flow in or out of inline asm code suppresses global optimization #pragma warning(disable: 4740) // warning C4740: flow in or out of inline asm code suppresses global optimization
#endif
CPPTRACE_FORCE_NO_INLINE CPPTRACE_FORCE_NO_INLINE
std::vector<uintptr_t> capture_frames(size_t skip, size_t max_depth) { std::vector<uintptr_t> capture_frames(size_t skip, size_t max_depth) {
skip++; skip++;
@ -150,7 +152,9 @@ namespace detail {
} }
return trace; return trace;
} }
#if IS_MSVC
#pragma warning(pop) #pragma warning(pop)
#endif
} }
} }