Go to file
Frediano Ziglio ccda863268 vd_agent: Do not define structures without fields
According to C standard the size of a structure without fields is
not defined (see
https://stackoverflow.com/questions/21851930/size-of-empty-structure-in-c-and-c).
As we almost only use GCC currently these structures are of size 0.
This can became a problem if 2 sides talking a given protocol use
these structures.
To avoid such possible mismatch (for instance having one side C and
the other C++ which defines these structures as having 1 as size) add
an empty (0-size array) field.
Although a 0-size array is not considered also that portable we use
extensively this feature with different compilers never encountering
issues.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
2018-05-31 17:20:54 +01:00
m4 build-sys: Add m4 file for AX_PYTHON_MODULE 2015-08-07 12:53:59 +02:00
spice vd_agent: Do not define structures without fields 2018-05-31 17:20:54 +01:00
AUTHORS Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
autogen.sh Remove codegen 2016-03-10 16:57:08 +01:00
ChangeLog Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
configure.ac build-sys: post-release bump 0.12.14 2017-07-03 13:20:29 +02:00
COPYING Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
git.mk Update git.mk to latest version 2012-09-21 15:48:39 +02:00
Makefile.am Add support for building with meson 2018-05-08 10:38:22 +01:00
meson.build Add support for building with meson 2018-05-08 10:38:22 +01:00
NEWS NEWS: prepare for 0.12.13 release 2017-07-03 13:14:29 +02:00
README Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
spice-protocol.pc.in Remove codegen 2016-03-10 16:57:08 +01:00