diff --git a/src/symbols/symbols_with_libdwarf.cpp b/src/symbols/symbols_with_libdwarf.cpp index ea52632..d322053 100644 --- a/src/symbols/symbols_with_libdwarf.cpp +++ b/src/symbols/symbols_with_libdwarf.cpp @@ -458,7 +458,8 @@ namespace libdwarf { &table_count, &line_context ); - VERIFY(table_count >= 0 && table_count <= 2, "Unknown dwarf line table count"); + static_assert(std::is_unsigned::value, "Expected unsigned Dwarf_Small"); + VERIFY(/*table_count >= 0 &&*/ table_count <= 2, "Unknown dwarf line table count"); if(ret == DW_DLV_NO_ENTRY) { // TODO: Failing silently for now return; diff --git a/src/unwind/unwind_with_dbghelp.cpp b/src/unwind/unwind_with_dbghelp.cpp index 375ee2e..7474c4b 100644 --- a/src/unwind/unwind_with_dbghelp.cpp +++ b/src/unwind/unwind_with_dbghelp.cpp @@ -21,6 +21,8 @@ namespace cpptrace { namespace detail { + #pragma warning(push) + #pragma warning(disable: 4740) // warning C4740: flow in or out of inline asm code suppresses global optimization CPPTRACE_FORCE_NO_INLINE std::vector capture_frames(size_t skip, size_t max_depth) { skip++; @@ -135,6 +137,7 @@ namespace detail { } return trace; } + #pragma warning(pop) } }