[gnome-builder] [build] Fix alignment warnings on ARM.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] [build] Fix alignment warnings on ARM.
- Date: Thu, 25 Sep 2014 02:10:49 +0000 (UTC)
commit 76a9f9b42a480afe67ccf980ae7b0c92152a307e
Author: Christian Hergert <christian hergert me>
Date: Wed Sep 24 19:09:37 2014 -0700
[build] Fix alignment warnings on ARM.
src/animation/gb-frame-source.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/animation/gb-frame-source.c b/src/animation/gb-frame-source.c
index 3eb092d..69637eb 100644
--- a/src/animation/gb-frame-source.c
+++ b/src/animation/gb-frame-source.c
@@ -34,7 +34,7 @@ static gboolean
gb_frame_source_prepare (GSource *source,
gint *timeout_)
{
- GbFrameSource *fsource = (GbFrameSource *)source;
+ GbFrameSource *fsource = (GbFrameSource *)(gpointer)source;
gint64 current_time;
guint elapsed_time;
guint new_frame_num;
@@ -81,7 +81,7 @@ gb_frame_source_dispatch (GSource *source,
GSourceFunc source_func,
gpointer user_data)
{
- GbFrameSource *fsource = (GbFrameSource *)source;
+ GbFrameSource *fsource = (GbFrameSource *)(gpointer)source;
gboolean ret;
if ((ret = source_func(user_data)))
@@ -120,7 +120,7 @@ gb_frame_source_add (guint frames_per_sec,
g_return_val_if_fail(frames_per_sec < 120, 0);
source = g_source_new(&source_funcs, sizeof(GbFrameSource));
- fsource = (GbFrameSource *)source;
+ fsource = (GbFrameSource *)(gpointer)source;
fsource->fps = frames_per_sec;
fsource->frame_count = 0;
fsource->start_time = g_get_monotonic_time() / 1000;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]