Some warning fixes
This commit is contained in:
parent
e28cda9a35
commit
b80026596f
@ -458,7 +458,8 @@ namespace libdwarf {
|
|||||||
&table_count,
|
&table_count,
|
||||||
&line_context
|
&line_context
|
||||||
);
|
);
|
||||||
VERIFY(table_count >= 0 && table_count <= 2, "Unknown dwarf line table count");
|
static_assert(std::is_unsigned<decltype(table_count)>::value, "Expected unsigned Dwarf_Small");
|
||||||
|
VERIFY(/*table_count >= 0 &&*/ table_count <= 2, "Unknown dwarf line table count");
|
||||||
if(ret == DW_DLV_NO_ENTRY) {
|
if(ret == DW_DLV_NO_ENTRY) {
|
||||||
// TODO: Failing silently for now
|
// TODO: Failing silently for now
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
namespace cpptrace {
|
namespace cpptrace {
|
||||||
namespace detail {
|
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
|
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++;
|
||||||
@ -135,6 +137,7 @@ namespace detail {
|
|||||||
}
|
}
|
||||||
return trace;
|
return trace;
|
||||||
}
|
}
|
||||||
|
#pragma warning(pop)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user