unicorn/qemu/include/qapi/qmp
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
..
qbool.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-03-07 12:29:31 -05:00
qdict.h qdict: Add qdict_put_null() helper, and put it to use 2018-03-07 17:00:41 -05:00
qerror.h qmp: Eliminate silly QERR_QMP_* macros 2018-03-02 11:28:17 -05:00
qjson.h import 2015-08-21 15:04:50 +08:00
qlist.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-03-07 12:29:31 -05:00
qlit.h qlit: Change compound literals to initializers 2018-03-07 17:13:14 -05:00
qnum.h qobject: Explain how QNum works, and why 2018-03-07 16:58:46 -05:00
qobject.h qapi: Introduce a first class 'null' type 2018-03-07 16:52:41 -05:00
qstring.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-03-07 12:29:31 -05:00