Hi, On Mon, Aug 24, 2015 at 02:10:59PM +0200, Christophe Fergeau wrote: > On Fri, Aug 14, 2015 at 06:24:30PM +0200, Victor Toso wrote: > > In order to avoid false posive alignment warnings > > clang: > > smartcard.c:131:29: error: cast from 'uint8_t *' (aka 'unsigned char *') > > to 'VSCMsgHeader *' (aka 'struct VSCMsgHeader *') increases required > > alignment from 1 to 4 [-Werror,-Wcast-align] > > > > VSCMsgHeader *vheader = (VSCMsgHeader*)state->buf; > > You should explain why this is aligned despite what the compiler > says/thinks. > > Christophe Okay, will do. _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel