unicorn/qemu/include/qapi
Marc-André Lureau b462c3929f
qlit: Change compound literals to initializers
The QLIT_QFOO() macros expand into compound literals. Sadly, gcc
doesn't recognizes these as constant expressions (clang does), which
makes the macros useless for initializing objects with static storage
duration.

There is a gcc bug about it:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71713

Change the macros to expand into initializers.

Backports commit d5cd8fbf130312bea91823c41de87d55818d599b from qemu
2018-03-07 17:13:14 -05:00
..
qmp qlit: Change compound literals to initializers 2018-03-07 17:13:14 -05:00
clone-visitor.h qapi: New QAPI_CLONE_MEMBERS() 2018-03-03 17:36:02 -05:00
dealloc-visitor.h qapi: Add new visit_free() function 2018-02-25 01:05:41 -05:00
error.h error: error_setg_errno(): errno gets preserved 2018-03-01 23:38:25 -05:00
qobject-input-visitor.h qapi: merge QInt and QFloat in QNum 2018-03-03 18:16:28 -05:00
qobject-output-visitor.h qapi: merge QInt and QFloat in QNum 2018-03-03 18:16:28 -05:00
string-input-visitor.h string-input-visitor: Favor new visit_free() function 2018-02-25 01:08:04 -05:00
visitor-impl.h qapi: Use QNull for a more regular visit_type_null() 2018-03-07 16:50:16 -05:00
visitor.h qapi: Use QNull for a more regular visit_type_null() 2018-03-07 16:50:16 -05:00