Warnings: cast increases required alignment
Hello!
On latest master clang
throws these warnings:
exo-binding.c:206:13: warning: cast from 'gchar *' (aka 'char *') to 'ExoBinding *' (aka 'struct _ExoBinding *') increases required alignment from 1 to 8 [-Wcast-align]
binding = (ExoBinding *) (((gchar *) blink) - G_STRUCT_OFFSET (ExoBinding, blink));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exo-binding.c:228:13: warning: cast from 'gchar *' (aka 'char *') to 'ExoMutualBinding *' (aka 'struct _ExoMutualBinding *') increases required alignment from 1 to 8 [-Wcast-align]
binding = (ExoMutualBinding *) (((gchar *) blink) - G_STRUCT_OFFSET (ExoMutualBinding, direct));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exo-binding.c:253:13: warning: cast from 'gchar *' (aka 'char *') to 'ExoMutualBinding *' (aka 'struct _ExoMutualBinding *') increases required alignment from 1 to 8 [-Wcast-align]
binding = (ExoMutualBinding *) (((gchar *) blink) - G_STRUCT_OFFSET (ExoMutualBinding, reverse));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
exo-gdk-pixbuf-extensions.c:131:23: warning: cast from 'guchar *' (aka 'unsigned char *') to '__m64 *' increases required alignment from 1 to 8 [-Wcast-align]
__m64 *pixdst = (__m64 *) gdk_pixbuf_get_pixels (dst);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exo-gdk-pixbuf-extensions.c:132:23: warning: cast from 'guchar *' (aka 'unsigned char *') to '__m64 *' increases required alignment from 1 to 8 [-Wcast-align]
__m64 *pixsrc = (__m64 *) gdk_pixbuf_get_pixels (source);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exo-gdk-pixbuf-extensions.c:480:23: warning: cast from 'guchar *' (aka 'unsigned char *') to '__m64 *' increases required alignment from 1 to 8 [-Wcast-align]
__m64 *pixdst = (__m64 *) gdk_pixbuf_get_pixels (dst);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exo-gdk-pixbuf-extensions.c:481:23: warning: cast from 'guchar *' (aka 'unsigned char *') to '__m64 *' increases required alignment from 1 to 8 [-Wcast-align]
__m64 *pixsrc = (__m64 *) gdk_pixbuf_get_pixels (source);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
exo-icon-view.c:3543:19: warning: cast from 'gchar *' (aka 'char *') to 'cairo_rectangle_int_t *' (aka 'struct _cairo_rectangle_int *') increases required alignment from 1 to 4 [-Wcast-align]
item->box = (GdkRectangle *) buffer;
^~~~~~~~~~~~~~~~~~~~~~~
exo-icon-view.c:3544:21: warning: cast from 'gchar *' (aka 'char *') to 'gint *' (aka 'int *') increases required alignment from 1 to 4 [-Wcast-align]
item->after = (gint *) (buffer + item->n_cells * sizeof (GdkRectangle));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.