mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
alignment: fix armel/armhf/mipsel build failure
This commit extends commitfaf1e24edf"zoom-manager: bring back attribute aligned(8)" to both places where the attribute was previously dropped from in commit63579451b5"alignment: set alignment on structs". 3.22.3 + commit6a3d7282ec+ commitfaf1e24edf+ this patch has been successfully build tested on Debian armhf porterbox (harris.debian.org). (It also means we end up with exactly the same as the 3.22.2 + patch situation currently shipped in Debian 'stretch' 9.0 regarding alignment/cast fixes.) https://bugzilla.gnome.org/show_bug.cgi?id=784466
This commit is contained in:
@ -34,7 +34,7 @@ struct _SpVisualizerTicks
|
||||
gint64 epoch;
|
||||
gint64 begin_time;
|
||||
gint64 end_time;
|
||||
};
|
||||
} __attribute__((aligned(8)));
|
||||
|
||||
enum {
|
||||
TICK_MINUTES,
|
||||
|
||||
@ -25,8 +25,6 @@ G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_VISUALIZER_TICKS (sp_visualizer_ticks_get_type())
|
||||
|
||||
typedef struct _SpVisualizerTicks SpVisualizerTicks __attribute__((aligned(8)));
|
||||
|
||||
G_DECLARE_FINAL_TYPE (SpVisualizerTicks, sp_visualizer_ticks, SP, VISUALIZER_TICKS, GtkDrawingArea)
|
||||
|
||||
GtkWidget *sp_visualizer_ticks_new (void);
|
||||
|
||||
@ -25,8 +25,6 @@ G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_ZOOM_MANAGER (sp_zoom_manager_get_type())
|
||||
|
||||
typedef struct _SpZoomManager SpZoomManager __attribute__((aligned(8)));
|
||||
|
||||
G_DECLARE_FINAL_TYPE (SpZoomManager, sp_zoom_manager, SP, ZOOM_MANAGER, GObject)
|
||||
|
||||
SpZoomManager *sp_zoom_manager_new (void);
|
||||
|
||||
Reference in New Issue
Block a user