From aa43d9ccab056a371426de6d0606dacaf1b6296c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 4 Sep 2009 17:43:37 +0000 Subject: Shuffle lines to avoid gcc 3 warning about redundant redeclaration Signed-off-by: Blue Swirl --- qint.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qint.c') diff --git a/qint.c b/qint.c index 9a56906895..447e847af3 100644 --- a/qint.c +++ b/qint.c @@ -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, -}; -- cgit v1.2.1