qemu/scripts
Peter Maydell 83ecb22ba2 scripts/qapi-types.py: Add dummy member to empty structs
Make sure that all generated C structs have at least one field; this
avoids potential issues with attempting to malloc space for
zero-length structs in C (g_malloc(sizeof struct) would return NULL).
It also avoids an incompatibility with C++ (where an empty struct is
size 1); that isn't important to us now but might be in future.

Generated empty structures look like this:
    struct Abort
    {
        char qapi_dummy_field_for_empty_struct;
    };

This silences clang warnings like:
./qapi-types.h:3752:1: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
struct Abort
^

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1419359069-16611-1-git-send-email-peter.maydell@linaro.org
2015-01-20 15:19:32 +00:00
..
kvm kvm_stat: Add powerpc support 2014-10-31 16:36:23 +01:00
qemu-guest-agent
qmp
tracetool Tracing: Fix simpletrace.py error on tcg enabled binary traces 2014-11-18 14:05:58 +00:00
acpi_extract_preprocess.py
acpi_extract.py i386: Add an ACPI_EXTRACT_NAME_BUFFER16 directive. 2014-11-02 11:52:24 +02:00
analyse-9p-simpletrace.py
check-qerror.sh
checkpatch.pl checkpatch: Brace handling on multi-line condition 2015-01-13 11:47:56 +00:00
cleanup-trace-events.pl cleanup-trace-events.pl: Tighten search for trace event call 2014-09-26 09:34:38 +01:00
coverity-model.c scripts: add sample model file for Coverity Scan 2014-04-18 10:33:36 +04:00
create_config
disas-objdump.pl
dump-guest-memory.py
extract-vsssdk-headers
feature_to_c.sh
get_maintainer.pl get_maintainer.pl: Remove the --git-chief-penguins option 2014-12-10 11:46:43 +03:00
gtester-cat
hxtool
make_device_config.sh
make-release make-release: Record SeaBIOS version 2014-03-31 15:02:04 +01:00
ordereddict.py
qapi-commands.py qapi: Suppress unwanted space between type and identifier 2014-06-23 11:01:24 -04:00
qapi-event.py qapi script: clean up in scripts 2014-06-27 09:27:56 -04:00
qapi-types.py scripts/qapi-types.py: Add dummy member to empty structs 2015-01-20 15:19:32 +00:00
qapi-visit.py qapi: add visit_start_union and visit_end_union 2014-09-26 13:14:10 -04:00
qapi.py qapi.py: avoid Python 2.5+ any() function 2014-08-28 13:42:25 +01:00
qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh: Add AArch64 registration 2014-03-17 16:31:53 +00:00
qemu-gdb.py
refresh-pxe-roms.sh
signrom.py
simpletrace.py simpletrace: add simpletrace.py --no-header option 2014-08-12 14:26:11 +01:00
switch-timer-api
texi2pod.pl
tracetool.py trace: Multi-backend tracing 2014-06-09 15:43:40 +02:00
update-acpi.sh
update-linux-headers.sh linux-headers: include psci.h 2014-06-16 13:24:41 +02:00
vmstate-static-checker.py checker: ignore fields marked unused 2014-08-04 15:02:37 +05:30