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:
Christian Hergert
2022-04-01 17:08:42 -07:00
parent 8ed6af618b
commit e9516fb202

View File

@ -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