Re: [Spice-devel] Alignment of data within spice packets

2017-03-09 Thread Victor Toso
Hi, On Thu, Mar 09, 2017 at 12:46:09PM +0100, Christophe de Dinechin wrote: > > > On 8 Mar 2017, at 22:16, Victor Toso wrote: > > > > Hi, > > > > On Wed, Mar 08, 2017 at 07:21:15PM +0100, Christophe de Dinechin wrote: > >> I have several errors like this: > >> > >>

Re: [Spice-devel] Alignment of data within spice packets

2017-03-09 Thread Christophe de Dinechin
> On 8 Mar 2017, at 22:16, Victor Toso wrote: > > Hi, > > On Wed, Mar 08, 2017 at 07:21:15PM +0100, Christophe de Dinechin wrote: >> I have several errors like this: >> >> spice-channel.c:1923:12: error: cast from 'uint8_t *' (aka 'unsigned char >> *') to >>

Re: [Spice-devel] Alignment of data within spice packets

2017-03-08 Thread Victor Toso
Hi, On Wed, Mar 08, 2017 at 07:21:15PM +0100, Christophe de Dinechin wrote: > I have several errors like this: > > spice-channel.c:1923:12: error: cast from 'uint8_t *' (aka 'unsigned char *') > to > 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 > to > 4

[Spice-devel] Alignment of data within spice packets

2017-03-08 Thread Christophe de Dinechin
I have several errors like this: spice-channel.c:1923:12: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align] ...(uint32_t *)((uint8_t *)c->peer_msg +