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 /qint.c | |
parent | c34ebfdc8715f03d53e154758423c902324fee06 (diff) | |
download | hqemu-aa43d9ccab056a371426de6d0606dacaf1b6296c.zip hqemu-aa43d9ccab056a371426de6d0606dacaf1b6296c.tar.gz |
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qint.c')
-rw-r--r-- | qint.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -13,7 +13,12 @@ #include "qobject.h" #include "qemu-common.h" -static const QType qint_type; +static void qint_destroy_obj(QObject *obj); + +static const QType qint_type = { + .code = QTYPE_QINT, + .destroy = qint_destroy_obj, +}; /** * qint_from_int(): Create a new QInt from an int64_t @@ -59,8 +64,3 @@ static void qint_destroy_obj(QObject *obj) assert(obj != NULL); qemu_free(qobject_to_qint(obj)); } - -static const QType qint_type = { - .code = QTYPE_QINT, - .destroy = qint_destroy_obj, -}; |