[sysprof] build: let gcc know our cast is safe
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] build: let gcc know our cast is safe
- Date: Thu, 21 Apr 2016 05:35:25 +0000 (UTC)
commit 8709eaff1402207ad369c2a0c97daf1ffc3e9286
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 20 22:35:17 2016 -0700
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-callgraph-profile.c b/lib/sp-callgraph-profile.c
index 996c53e..54e0a27 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]