diff options
| author | Marc-André Lureau | 2017-08-25 12:59:03 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2017-09-04 13:09:11 +0200 |
| commit | d5cd8fbf130312bea91823c41de87d55818d599b (patch) | |
| tree | 6ff2b4737d5091971453779208cc6cc58cd0c98d /tests | |
| parent | qlit: use QLit prefix consistently (diff) | |
| download | qemu-d5cd8fbf130312bea91823c41de87d55818d599b.tar.gz qemu-d5cd8fbf130312bea91823c41de87d55818d599b.tar.xz qemu-d5cd8fbf130312bea91823c41de87d55818d599b.zip | |
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>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
