Skip to content
Snippets Groups Projects
Commit 0656bce7 authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'gcc10.CxxUtils-20210402' into 'master'

CxxUtils: Fix gcc10 warning.

See merge request atlas/athena!42247
parents 87bde051 11eead4c
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ static thread_local int exctrace_last_depth = 0;
static thread_local void* exctrace_last_trace[bt_depth];
// The real __cxa_throw function.
typedef void throwfn (void*, std::type_info*, void (*dest)(void*));
typedef void throwfn (void*, void*, void (*dest)(void*));
static throwfn* old_throw;
extern "C" {
......@@ -50,11 +50,13 @@ extern "C" {
// The __cxa_throw hook function.
// Record a backtrace, then chain to the real throw function.
extern "C" void __cxa_throw (void* thrown_exception,
std::type_info* tinfo,
void* tinfo,
void (*dest)(void*))
{
exctrace_last_depth = backtrace (exctrace_last_trace, bt_depth);
old_throw (thrown_exception, tinfo, dest);
// not reached
std::abort();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment