alignment: set alignment on structs

This uses an alternate idea for setting the structure alignments. Lets
see if this silents the ARM builder cast alignment issues.

GSlice (which is what is used for GObjects) guarantees a 2-pointer size
allocation, which means we can be ensured that the alignment is at least
8 bytes.
This commit is contained in:
Christian Hergert
2016-11-15 22:18:09 -08:00
parent 40eb9a2c4e
commit 63579451b5
4 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@ struct _SpVisualizerTicks
gint64 epoch;
gint64 begin_time;
gint64 end_time;
} __attribute__((aligned(8)));
};
enum {
TICK_MINUTES,