Home
last modified time | relevance | path

Searched hist:d5cd8fbf130312bea91823c41de87d55818d599b (Results 1 – 1 of 1) sorted by relevance

/qemu/include/qobject/
H A Dqlit.hd5cd8fbf130312bea91823c41de87d55818d599b Fri Aug 25 10:59:03 UTC 2017 Marc-André Lureau <marcandre.lureau@redhat.com> 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.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170825105913.4060-5-marcandre.lureau@redhat.com>
[Commit message improved]
Signed-off-by: Markus Armbruster <armbru@redhat.com>