[Spice-devel] [PATCH spice-protocol 3/3] qxl_dev: Move QXLReleaseInfoExt out of start/end-packed.h

2019-05-13 Thread Frediano Ziglio
This structure is not declares as SPICE_ATTR_PACKED resulting it as aligned and no packed using GCC (no MingW). This structure is only packed under MingW or Microsoft compilers. This structure is not technically a definition for QXL device but is used only for spice-server QXL interface. As said ab

[Spice-devel] [PATCH spice-protocol 2/3] qxl_dev: Fix alignment for QXLReleaseInfo

2019-05-13 Thread Frediano Ziglio
Do not declare the structure as aligned. The start/end-packed.h headers affects only MingW or Microsoft compilers. To have unaligned structure with GCC compiler you have to use SPICE_ATTR_PACKED. This way the definition are the same for all compiler. This structure is used in a lot of QXL structure

[Spice-devel] [PATCH spice-protocol 1/3] build-sys: post-release version bump 0.14.1

2019-05-13 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b56f414..bc3e33f 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.57]) m4_define([SPICE_MAJOR],

Re: [Spice-devel] [PATCH spice-server 2/2] dcc: Avoid usage of not aligned GlzEncDictRestoreData structure

2019-05-13 Thread Uri Lublin
On 5/8/19 4:06 PM, Frediano Ziglio wrote: Copy to/from unaligned field to avoid potential unaligned access. Although it adds a copy it's not in a hot path (migration) and the structure is pretty small. Signed-off-by: Frediano Ziglio Ack, but see one comment below. I wrote a similar patch, yo

Re: [Spice-devel] [PATCH spice-server] build: do not warn about address-of-packed-member

2019-05-13 Thread Uri Lublin
On 5/7/19 12:57 PM, Daniel P. Berrangé wrote: On Tue, May 07, 2019 at 12:48:55PM +0300, Uri Lublin wrote: The gcc warning address-of-packed-member is new and on by default in gcc 9. Many of the structures sent over the network are packed and with unaligned fields. This breaks the build -- due

[Spice-devel] [PATCH spice-streaming-agent] Remove -Wchkp warning, deprecated in GCC 9

2019-05-13 Thread Snir Sheriber
Signed-off-by: Snir Sheriber --- m4/manywarnings.m4 | 1 - 1 file changed, 1 deletion(-) diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 4f701f4..3864100 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -116,7 +116,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wbuiltin-macro-r

Re: [Spice-devel] [PATCH spice-protocol 1/3] build-sys: post-release version bump 0.14.1

2019-05-13 Thread Victor Toso
Hi, On Mon, May 13, 2019 at 10:45:54AM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio Yep, Acked-by: Victor Toso > --- > configure.ac | 2 +- > meson.build | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index b56f414

Re: [Spice-devel] [PATCH spice-streaming-agent] Remove -Wchkp warning, deprecated in GCC 9

2019-05-13 Thread Victor Toso
Hi, On Mon, May 13, 2019 at 04:52:46PM +0300, Snir Sheriber wrote: > Signed-off-by: Snir Sheriber Acked-by: Victor Toso > --- > m4/manywarnings.m4 | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 > index 4f701f4..3864100 100644 > --- a/m4/manywa

Re: [Spice-devel] [PATCH spice-streaming-agent] Remove -Wchkp warning, deprecated in GCC 9

2019-05-13 Thread Frediano Ziglio
> > Signed-off-by: Snir Sheriber Acked-by: Frediano Ziglio > --- > m4/manywarnings.m4 | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 > index 4f701f4..3864100 100644 > --- a/m4/manywarnings.m4 > +++ b/m4/manywarnings.m4 > @@ -116,7 +116,6 @@ AC