From 9ab32d7cb42b9275ab3c7f34c0eb4501be758490 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Jun 2022 01:59:31 +0200 Subject: [PATCH] Fix builds on platforms without execinfo (amend cd4549aff7) --- libs/pbd/stacktrace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc index f8ba7e08b3..fc214916fd 100644 --- a/libs/pbd/stacktrace.cc +++ b/libs/pbd/stacktrace.cc @@ -92,7 +92,7 @@ extern "C" { #endif void -PBD::stacktrace (std::ostream& out, int levels, int start) +PBD::stacktrace (std::ostream& out, int levels, size_t start) { void* stack[62]; // does not support more then 62 levels of stacktrace unsigned short frames; @@ -125,7 +125,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start) #else void -PBD::stacktrace (std::ostream& out, int, int) +PBD::stacktrace (std::ostream& out, int, size_t) { out << "stack tracing is not enabled on this platform" << std::endl; }