From 96a55fc68670fbee80db20de55bcd11c68a8e657 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:42:26 -0500 Subject: [PATCH] Fix windows build, and prevent future warnings --- src/unwind/unwind_with_dbghelp.cpp | 2 +- src/unwind/unwind_with_execinfo.cpp | 2 +- src/unwind/unwind_with_nothing.cpp | 2 +- src/unwind/unwind_with_unwind.cpp | 2 +- src/unwind/unwind_with_winapi.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/unwind/unwind_with_dbghelp.cpp b/src/unwind/unwind_with_dbghelp.cpp index c2f99ca..41aeb04 100644 --- a/src/unwind/unwind_with_dbghelp.cpp +++ b/src/unwind/unwind_with_dbghelp.cpp @@ -154,7 +154,7 @@ namespace detail { } CPPTRACE_FORCE_NO_INLINE - std::size_t safe_capture_frames(frame_ptr* buffer, std::size_t size, std::size_t skip, std::size_t max_depth) { + std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { // Can't safe trace with dbghelp return 0; } diff --git a/src/unwind/unwind_with_execinfo.cpp b/src/unwind/unwind_with_execinfo.cpp index cddc952..57cb2c9 100644 --- a/src/unwind/unwind_with_execinfo.cpp +++ b/src/unwind/unwind_with_execinfo.cpp @@ -29,7 +29,7 @@ namespace detail { } CPPTRACE_FORCE_NO_INLINE - std::size_t safe_capture_frames(frame_ptr* buffer, std::size_t size, std::size_t skip, std::size_t max_depth) { + std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { // Can't safe trace with execinfo return 0; } diff --git a/src/unwind/unwind_with_nothing.cpp b/src/unwind/unwind_with_nothing.cpp index 88715f8..88d45b6 100644 --- a/src/unwind/unwind_with_nothing.cpp +++ b/src/unwind/unwind_with_nothing.cpp @@ -12,7 +12,7 @@ namespace detail { } CPPTRACE_FORCE_NO_INLINE - std::size_t safe_capture_frames(frame_ptr* buffer, std::size_t size, std::size_t skip, std::size_t max_depth) { + std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { return 0; } } diff --git a/src/unwind/unwind_with_unwind.cpp b/src/unwind/unwind_with_unwind.cpp index 4bef83a..edd9403 100644 --- a/src/unwind/unwind_with_unwind.cpp +++ b/src/unwind/unwind_with_unwind.cpp @@ -64,7 +64,7 @@ namespace detail { } CPPTRACE_FORCE_NO_INLINE - std::size_t safe_capture_frames(frame_ptr* buffer, std::size_t size, std::size_t skip, std::size_t max_depth) { + std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { // Can't safe trace with _Unwind return 0; } diff --git a/src/unwind/unwind_with_winapi.cpp b/src/unwind/unwind_with_winapi.cpp index ee51926..c316986 100644 --- a/src/unwind/unwind_with_winapi.cpp +++ b/src/unwind/unwind_with_winapi.cpp @@ -39,7 +39,7 @@ namespace detail { } CPPTRACE_FORCE_NO_INLINE - std::size_t safe_capture_frames(frame_ptr* buffer, std::size_t size, std::size_t skip, std::size_t max_depth) { + std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { // Can't safe trace with winapi return 0; }