From 8709eaff1402207ad369c2a0c97daf1ffc3e9286 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 20 Apr 2016 22:35:17 -0700 Subject: [PATCH] build: let gcc know our cast is safe Data is already aligned, so casting the ->data field is fine. --- lib/sp-callgraph-profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sp-callgraph-profile.c b/lib/sp-callgraph-profile.c index 996c53e3..54e0a274 100644 --- a/lib/sp-callgraph-profile.c +++ b/lib/sp-callgraph-profile.c @@ -304,7 +304,7 @@ sp_callgraph_profile_generate_worker (GTask *task, g_array_index (resolved, guint64, len++) = POINTER_TO_U64 ("[Everything]"); - stack_stash_add_trace (resolved_stash, (SpAddress *)resolved->data, len, 1); + stack_stash_add_trace (resolved_stash, (SpAddress *)(gpointer)resolved->data, len, 1); } ret = TRUE;