From 6bc0064a2a43b9317546df312785b1eb11defa60 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 5 Mar 2021 18:37:49 +0100 Subject: [PATCH] demangled_backtrace: Cast a thing to const char* instead of char* Apparently this is const char* on NetBSD, so it complains. Since it should be harmless to allow this one to be const, just do that. --- src/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.cpp b/src/common.cpp index e38f9fd29..a1b3125cf 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -212,7 +212,7 @@ bool is_windows_subsystem_for_linux() { status == 0 ? demangled : info.dli_sname == nullptr ? symbols[i] : info.dli_sname, - static_cast(callstack[i]) - static_cast(info.dli_saddr)); + static_cast(callstack[i]) - static_cast(info.dli_saddr)); free(demangled); } else { swprintf(text, sizeof(text) / sizeof(wchar_t), L"%-3d %s", i - skip_levels, symbols[i]);