[sysprof] kernel-symbol: fix alignment warning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] kernel-symbol: fix alignment warning
- Date: Mon, 22 Aug 2016 00:33:46 +0000 (UTC)
commit 94c8551063d30bbb830495cd1d857e1abc4b36e5
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 21 17:25:50 2016 -0700
kernel-symbol: fix alignment warning
Our pointer is always malloc() aligned, so we have a safe cast here.
lib/sp-kernel-symbol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-kernel-symbol.c b/lib/sp-kernel-symbol.c
index 2855b29..3a3d9c9 100644
--- a/lib/sp-kernel-symbol.c
+++ b/lib/sp-kernel-symbol.c
@@ -198,7 +198,7 @@ sp_kernel_symbol_from_address (SpCaptureAddress address)
if (address < first->address)
return NULL;
- return sp_kernel_symbol_lookup ((SpKernelSymbol *)kernel_symbols->data,
+ return sp_kernel_symbol_lookup ((SpKernelSymbol *)(gpointer)kernel_symbols->data,
address,
0,
kernel_symbols->len - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]