diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-04 17:43:37 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-04 17:43:37 +0000 |
commit | aa43d9ccab056a371426de6d0606dacaf1b6296c (patch) | |
tree | 18308fe85ffb82bfd11ecbf8cdda0524eed889a2 /qdict.c | |
parent | c34ebfdc8715f03d53e154758423c902324fee06 (diff) | |
download | qemu-aa43d9ccab056a371426de6d0606dacaf1b6296c.zip qemu-aa43d9ccab056a371426de6d0606dacaf1b6296c.tar.gz qemu-aa43d9ccab056a371426de6d0606dacaf1b6296c.tar.bz2 |
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qdict.c')
-rw-r--r-- | qdict.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -17,7 +17,12 @@ #include "sys-queue.h" #include "qemu-common.h" -static const QType qdict_type; +static void qdict_destroy_obj(QObject *obj); + +static const QType qdict_type = { + .code = QTYPE_QDICT, + .destroy = qdict_destroy_obj, +}; /** * qdict_new(): Create a new QDict @@ -290,8 +295,3 @@ static void qdict_destroy_obj(QObject *obj) qemu_free(qdict); } - -static const QType qdict_type = { - .code = QTYPE_QDICT, - .destroy = qdict_destroy_obj, -}; |