mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 06:30:54 +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,
|
StackFunction func,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdangling-pointer"
|
||||||
|
|
||||||
StackLink link;
|
StackLink link;
|
||||||
|
|
||||||
if (trace)
|
if (trace)
|
||||||
@ -298,6 +301,8 @@ do_callback (StackNode *node,
|
|||||||
g_assert (trace->prev == &link);
|
g_assert (trace->prev == &link);
|
||||||
trace->prev = NULL;
|
trace->prev = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user