qemu-e2k/include/qemu
Greg Kurz ea134caa08 typedefs: add QJSON
Since commit 83ee768d62, we now have two places that define the
QJSON type:

$ git grep 'typedef struct QJSON QJSON'
include/migration/vmstate.h:typedef struct QJSON QJSON;
migration/qjson.h:typedef struct QJSON QJSON;

This breaks docker-test-build@centos6:

In file included from /tmp/qemu-test/src/migration/savevm.c:59:
/tmp/qemu-test/src/migration/qjson.h:16: error: redefinition of typedef
 'QJSON'
/tmp/qemu-test/src/include/migration/vmstate.h:30: note: previous
 declaration of 'QJSON' was here
make: *** [migration/savevm.o] Error 1

This happens because CentOS 6 has an old GCC 4.4.7. Even if redefining
a typedef with the same type is permitted since GCC 4.6, unless -pedantic
is passed, we don't really need to do that on purpose. Let's have a
single definition in <qemu/typedefs.h> instead.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <152844714981.11789.3657734445739553287.stgit@bahia.lan>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2018-06-15 14:40:56 +01:00
..
acl.h
atomic.h atomic.h: Work around gcc spurious "unused value" warning 2018-05-10 18:10:57 +01:00
base64.h
bcd.h
bitmap.h
bitops.h
bswap.h
buffer.h
compiler.h compiler: Add QEMU_BUILD_BUG_MSG() macro 2018-03-19 10:00:14 -05:00
config-file.h
coroutine_int.h coroutine: avoid co_queue_wakeup recursion 2018-03-27 13:05:28 +01:00
coroutine.h
cpuid.h
crc32c.h
cutils.h cutils: add qemu_strtoi & qemu_strtoui parsers for int/unsigned int types 2018-03-13 18:06:05 +00:00
envlist.h
error-report.h
event_notifier.h
fifo8.h
fifo32.h
fprintf-fn.h
futex.h
hbitmap.h
help_option.h
host-utils.h
id.h
int128.h
iov.h
iova-tree.h util: implement simple iova tree 2018-05-23 17:33:58 +03:00
jhash.h
job.h job: Add error message for failing jobs 2018-05-30 13:31:01 +02:00
lockable.h lockable: workaround GCC link issue with ASAN 2018-03-06 14:01:27 +01:00
log-for-trace.h log-for-trace.h: Split out parts of log.h used by trace.h 2018-03-12 11:10:20 +00:00
log.h tcg: Optionally log FPU state in TCG -d cpu logging 2018-05-15 14:58:44 +01:00
main-loop.h
memfd.h memfd: fix vhost-user-test on non-memfd capable host 2018-04-09 12:57:06 +02:00
mmap-alloc.h
module.h audio: add module loading support 2018-03-12 11:18:26 +01:00
notify.h
option_int.h
option.h opts: don't silently truncate long option values 2018-05-09 00:13:39 +02:00
osdep.h osdep: powerpc64 align memory to allow 2MB radix THP page tables 2018-06-12 10:44:36 +10:00
path.h
processor.h
qdist.h
qht.h
queue.h queue: add QSIMPLEQ_PREPEND() 2018-03-27 13:05:28 +01:00
range.h
ratelimit.h
rcu_queue.h
rcu.h membarrier: introduce qemu/sys_membarrier.h 2018-03-12 16:12:47 +01:00
readline.h
seqlock.h
sockets.h sockets: move fd_is_socket() into common sockets code 2018-03-13 18:06:06 +00:00
stats64.h
sys_membarrier.h membarrier: add --enable-membarrier 2018-03-12 16:12:47 +01:00
systemd.h
thread-posix.h
thread-win32.h
thread.h
throttle-options.h
throttle.h
timed-average.h
timer.h replay: save prior value of the host clock 2018-03-12 16:12:50 +01:00
typedefs.h typedefs: add QJSON 2018-06-15 14:40:56 +01:00
unicode.h
uri.h
uuid.h
vfio-helpers.h
xattr.h