From f69448f78120dd631618385df560561c8cbee02a Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Fri, 22 Sep 2023 12:17:07 -0400 Subject: [PATCH] Try to fix test and build workflows --- src/unwind/unwind_with_execinfo.cpp | 2 +- src/unwind/unwind_with_nothing.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unwind/unwind_with_execinfo.cpp b/src/unwind/unwind_with_execinfo.cpp index 836a712..24df5d7 100644 --- a/src/unwind/unwind_with_execinfo.cpp +++ b/src/unwind/unwind_with_execinfo.cpp @@ -14,7 +14,7 @@ namespace cpptrace { namespace detail { CPPTRACE_FORCE_NO_INLINE std::vector capture_frames(size_t skip, size_t max_depth) { - skip += 2; // TODO: Not sure where the other 1 comes from + skip++; std::vector addrs(std::min(hard_max_frames, skip + max_depth), nullptr); const int n_frames = backtrace(addrs.data(), static_cast(addrs.size())); // thread safe std::vector frames(n_frames - skip, 0); diff --git a/src/unwind/unwind_with_nothing.cpp b/src/unwind/unwind_with_nothing.cpp index f1dbb5c..2abc362 100644 --- a/src/unwind/unwind_with_nothing.cpp +++ b/src/unwind/unwind_with_nothing.cpp @@ -7,7 +7,7 @@ namespace cpptrace { namespace detail { - std::vector capture_frames(size_t skip, size_t max_depth) { + std::vector capture_frames(size_t, size_t) { return {}; } }