mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
stackstash: ignore dangling-pointer warning in do_callback
As previously asserted, this just squashes the annoying warnings coming from GCC.
This commit is contained in:
@ -270,6 +270,9 @@ do_callback (StackNode *node,
|
||||
StackFunction func,
|
||||
gpointer data)
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-pointer"
|
||||
|
||||
StackLink link;
|
||||
|
||||
if (trace)
|
||||
@ -298,6 +301,8 @@ do_callback (StackNode *node,
|
||||
g_assert (trace->prev == &link);
|
||||
trace->prev = NULL;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user